It's very easy to create hydrogen from fossil natural gas. Which is the real motivation behind 99% of H2 projects; continue to emit CO2, just hidden from the end user.
Battery electric is now pretty much inevitable.
How do you solve aeronautical and maritime applications?
In fairness, hydrogen from gas would enable the CO2 to be sequestered. If the vehicle itself burned the natural gas that would require recapturing the CO2 from the atmosphere itself, which is much more challenging.
None of this is to detract from the attractiveness of battery vehicles.