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...
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.
Interesting discussions about energetics are best had from a distance.