Hydrogen by itself has the energy density of zero. Batteries are nearing the energy density of high explosives (and for some types, such as Li-S, exceed it), and, unlike hydrogen, have all the components required for energy yield within micrometers of each other.