Safe Hydrogen storage is possible, but development is still behind where it needs to be, especially when compared to batteries.
The real issue with hydrogen though, is that we still suck at making it. Most of the cheap hydrogen on the market is from hydrocarbons, which isn't exactly a renewable resource. Electrolysis as we currently do it is inefficient, with energy lost during production. Meanwhile, batteries can take energy straight from whatever source made it, with very little lost in the process, so it's way more efficient.
If Hydrogen production makes a breakthrough in the future, and hydrogen storage improves a bit more, it could quickly become viable, but that's probably gonna be a while.