Several decades ago I used to work at "Big 3" automotive proving ground in Michigan. While there I took a driver safety training course. When they talked about car fires that had just one specific bit of advice:

Before you get out of the car pull the hood release from inside the car.

They said that an engine fire will typically damage the engine-end of the hood release cable preventing fire crews from being able to unlatch and open the hood, which really limits their access when extinguishing the fire.