Reacting with atmospheric oxygen and releasing energy is not equal to one electrochemical element with one side as Li may accumulate. It is totally different physical, chemical and electrochemical basics.
1. If we have electric, what is reason to go for hydrogen? It decreases overall total efficiency of our tasks sch as transport, climate control, etc.....
2. As highly permeable gas, hydrogen requires another level of infrastructure which means expensive.
3. Using hydrogen as fuel for transport means low efficiency vs electric motors (>95%) from any point of view
1st argument is covering all cons. There are no sense to generate hydrogen from electric power. And in reality it is not easy process as seems .