Hydrogen is also not particularly "green" without further spending for generation capacity.
Currently, most hydrogen is produced from fossil fuels, specifically natural gas. Electricity—from the grid or from renewable sources such as wind, solar, geothermal, or biomass—is also currently used to produce hydrogen. In the longer term, solar energy and biomass can be used more directly to generate hydrogen.
Going directly to batteries is far more efficent. Going from power to hydrogen is incredibly inefficent. So at least not as much energy needs to be produced.
Currently, most hydrogen is produced from fossil fuels, specifically natural gas. Electricity—from the grid or from renewable sources such as wind, solar, geothermal, or biomass—is also currently used to produce hydrogen. In the longer term, solar energy and biomass can be used more directly to generate hydrogen.
https://www.energy.gov/eere/fuelcells/hydrogen-resources