How does a Tesla get such good range? There's still a lot of energy in those batteries, and damaging them is far easier to cause a fire than leaking fuel --- the former can self-ignite just from dissipating its own energy into an internal short, while the latter needs an ignition source. In addition, the batteries are under the entire vehicle and thus more likely to be damaged; a fuel tank has a smaller area and is concentrated in one place.
It is extremely rare for fuel tanks to explode in a crash.
So far, experiential evidence with Tesla seems to be showing a lower than average risk of fires, though the breadth and nature of the battery leads to challenges in managing the fire itself.
All cases that I'm aware of proceeded at a slow enough pace to allow evacuation of the vehicle.
How often does a damaged and leaking fuel tank start a fire?
How often does a lithium battery that has been structurally compromised start a fire?
Fire safety is a major negative for lithium batteries. That much electrical energy in that form factor can only be so safe.
I do believe "it's still safer than the average car" because there's not a big tank of explosive - I'm most curious to hear what caused such a massive fire in this crash. But you're talking about the autopilot and it's statistically incorrect to say it's safer than the average car. It's merely safer than a driver alone - this should be no surprise as you'll find that cars with backup cameras and alarms don't hit have as many accidents while in reverse as cars without them.