The automatic detection and activation of "driving focus" in iOS has been extremely accurate in my experience. Seems like it'd be easiest to simply filter out "car crashes" when the phone isn't associated with a "driving" state.
On the other hand my iOS phone has never activated driving focus even when I'm driving. I suspect that's because I never connected my phone to the car over Bluetooth.