Furthermore, most H2 is produced by fossil fuel extraction. We aren't cracking water to get H2, we're pulling it out of the ground. Cracking water is hideously expensive.
All in all, combustion engines are more efficient than green hydrogen. That's the core problem. We simply don't have the absurd amounts of unused energy required for green H2 production. If we did, we'd be pumping fully half of that energy into the atmosphere as waste heat.
Hydrogen cars aren't going to happen. We won't have grid-scale hydrogen. It's just a terrible idea. Hydrogen is too difficult to handle and incredibly dangerous to store. The efficiency is so ludicrously bad that you would genuinely do better to create syngas from captured atmospheric carbon and burn it in regular combustion vehicles.
Avoiding carbon emissions is not the only concern in regards to the climate. Focusing on carbon and nothing else leads you to really dumb and bad ideas like piping hydrogen gas across the continent.
Ng pipelines are everywhere, so it makes perfect sense.