We use a phase-sensitive measurement to perform a binary hypothesis testing, i.e., distinguish between one on-axis and two symmetrically displaced Gaussian point spread functions. In the sub-Rayleigh regime, we measure a total error rate lower than allowed by direct imaging. Our results experimentally demonstrate that linear-optical spatial mode transformations can provide useful advantages for object detection compared with conventional measurements, even in the presence of realistic experimental cross talk, paving the way for meaningful improvements in identifying, detecting, and monitoring real-world, diffraction-limited scenes.