No one wins when a driver tries to beat a train to a railroad crossing. The train certainly can’t swerve, or stop in time, to prevent a catastrophe. If a train conductor spots a car stopped on the tracks, it’s already too late to prevent a collision.
Check out this National Highway Transportation Safety Agency video to see what happens when a train and car collide.
And see how long it takes a train to come to an emergency stop.