Hydrogen for cars is a nonsense. It is so inefficient. Unless you are making it from oil, which why the oil companies are pushing it, you lose loads of energy making it. Then it has to storages and transported, which is hard. Then the car use of it is inefficient too.
So ignoring the oil industries’ “blue hydrogen”, and looking only at “green hydrogen”, you are looking at about 22% of the energy generated ending up pushing the car forward! With an EV it is about 73%. So hydrogen car are over 3 times more expensive to run.
Plus you can just plug in an EV anywhere. With an EV, if need be, you can charge, slowly, off a normal home socket. Of course, normally, you fit faster charging at home.
Hydrogen cars is lie pushed by big oil.
Afaik it has a higher energy density than common batteries, so it could be useful in things like aviation where this is the main concern and you can build special infrastructure to support it.
The frustrating thing is that a car filled with hydrogen works really well, has a pretty long range and can be refueled quickly, so it looks like a good alternative. It’s only when you ask how that hydrogen was made and how it arrived at the refueling station that things start to break appart.