Phase-only filter as matched spatial filter with enhanced discrimination capability