BTW let's talk about an example: Toyota Mirai, far complex than an EV, complex than an ICE, ~1kg H₂ / 100 km. Now let's say we have spend 67kWh of green electricity to produce that kg of H₂, the process have some loss, again I can't really know how much but some [1] say are around 14%, not bad but still a certain amount of loss. Than the energy need to compress resulting gas to 700 bars. Energy to push it in the car tank. At the end of the game you get what? 33-34kWh out of initial 67?
100 km? A Tesla do 100 km with around 18kWh... Surely and H₂ fuel-cell system have far more power than a lithium one, around five time per similar size/weight, so we can potentially power trucks, even planes with hydrogen, while we practically can't [2] with lithium.
Again trying to imaging a possible hydrogen-based vehicles scenario we end up in far cheaper "energetically speaking" blue/grey hydrogen but what's it's point? We can burn directly hydrocarbons, we already use them. Using them to make hydrogen means just spent a lot for a new supply chain and just shift pollution outside citizens sight. With the benefit of running on 700 bars bombs under our asses...
[1] https://mdpi-res.com/d_attachment/materials/materials-12-019...
[2] yes I know eVTOL experiments, they can't scale behind such kind of very expensive personal toys with lithium chemistry for energy source