The previous point is fair though. What is the energy density of gasoline in a stoichiometric mixture with its oxidizer and not already detonated? That's where TNT beats it by a long shot. The mixture with any chance of being stored would be some relatively low pressure gas.
Edit: 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...
Edit: 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...