But hydrogen fuel cells are also expensive to maintain and have been a huge maintenance burden, as they're quick to fail with contamination (and lots of other factors), leading to hydrogen trains being replaced by diesel trains.
Hydrogen can be clean, but it isn't and won't be for the forseeable future for the simple fact that it would be way to expensive. Almost all hydrogen today is made from natural gas and much less efficient than powering an electric car from a gas plant. But even if hydrogen was produced with electricity, due to the low efficiency it would be much dirtier than an electric car (And we're entirely discounting hydrogen leakage, which is much more potent at heating up the planet than CO2).
Hydrogen can also be fast to refuel, but it takes much longer than gas and often requires a long "time-out" after the last refueling. Hydrogen fuel stations are also very unreliable. With current EVs, 20%-80% charging in 20 minutes is state of the art, which should make charging times mostly a non-issue when this is also available in most "cheap" EVs.