In my experience, when I tried to board the wrong flight, the scanner served its purpose making an alerting sound and making sure they'd prevent me from boarding on the wrong airplane.
This was with Delta (both my intended flight and the mistaken one.)