I know that adding more tech to something to overcome or correct a situation usually doesn't work well in practice, but one thing that could be done here is that when the air bags go off, the doors get a signal (at the same time that the airbags go off) to unlock or even open say 10 or 20 seconds later. Maybe that means you have to have a hi-capacity cap in the door module so it has some power during / after a collision to remain functional during that time. Or maybe the windows come down automatically, or both. I know it won't help every crash situation, like when the door frame is jammed.
At the very least, the doors should unlock, the exterior handles should allow rescuers to open the doors. I have pretty much zero knowledge of Teslas, but I think I heard that the exterior handles are also motorized / not normally accessible?
Car accidents in all types of modern passenger vehicles, is way more survivable today, it's sad that self-extrication in Teslas seems to be a problem.