I'd like to add a few comments.
There are many more types of vehicle than car. Personally I don't see hydrogen as a good choice for cars. However we have used electricity in preference to oil for decades in some vehicles (trains, the underground etc). I can't see hydrogen replacing electricity in these cases, but they don't use batteries.
What of ships or trucks? Why when vehicles are mentioned do we always think car?
It's true that currently most hydrogen is produced by chemical reformation. If electricity was very cheap, possibly we might make more hydrogen using it.
There is a feasability study into the question. They are talking 3-4MW of electicity used to make hydrogen in 10 years time.https://www.greentechmedia.com/articles ... en-project
Ships are already being converted to run on hydrogen.https://www.rechargenews.com/transition ... 2-1-749070
Someone is looking into mining trucks.https://www.bloomberg.com/news/articles ... reen-shift
Why do we always think vehicle means car?
Anyone reading the original BBC article would note that they state "So hydrogen lost the head-on battle for the motor car. But now it’s back in the frame for the sort of transport, industry and heating tasks that batteries are struggling to fulfil."