Hydrogen is troublesome as an energy storage. The roundtrip efficiency (electricity -> hydrogen -> electricity) is just… very not worthwhile compared to batteries. Then beyond efficiency there is still the question of “how do we store hydrogen safely?”
Storing energy indefinitely is not a problem for electricity storage, since we are pretty much guaranteed to use the stored energy up in a single day.
For SSDs this has historically not been the case, there’s no way in hell you could buy a 1TB SSD within $200 a decade ago.