This is why some cars have locks that automatically engage at speed, not when you idle at a stop light.
Rescuers will bust your window if they have to. They can't count on the door being operable in a crash you need rescuing from.
Not out of fear of the unlikely but real possibility someone will open them when you're stopped. But because they're not supposed to open when the car is in motion.
cartalk.com/content/does-l…
The doors need to stay closed. If any part of your body leaves a vehicle in a collision... your odds go down.
But surviving an accident is about odds. Once things start happening, you can't control how they unfold.
Treat it like wearing your seatbelt. It's part of the safety equipment you're given with a car.