TNT.....: 4 kJ/gram and 7 MJ/liter
Gasoline: 43 kJ/gram and 33 MJ/liter TNT.....: 4 kJ/gram and 7 MJ/liter
Gasoline: 43 kJ/gram and 33 MJ/literEdit: Or, a fair closed-system comparison to a battery would need to include a liquid oxygen tank or similar so you have the two components stored but can control the delivery...
As a stupid example, if we have a high density battery technology that never explodes unless, say, under magnetic forces only seen being produced by magnetars, that's a pretty safe battery.
eeeh that still doesn't matter really. Gasoline is safe(r) because it needs conditions to explode (spreading into area then ignition), instead of just detonator. Diesel even more so
A damaged gasoline tank that's near empty might explode but more likely it will just leak and start burning, and probably at that moment be still extinguishable. Explosives, well, you won't have time to blink.
Batteries ? Zero chance to extinguish, gonna let it burn thru. THAT is the problem
Interesting discussions about energetics are best had from a distance.