Part of the argument for electric is that you are not paying for oil changes and other routine maintenance that gas cars require.
The two options for a hydrogen car are: (1) ordinary internal combustion engine and (2) fuel cell.
(1) is an off the shelf technology but is not very fuel efficient and not perfectly clean. You don't get CO2 or CO or hydrocarbons but you still get oxides of nitrogen; hydrocarbons + nitrogen oxides + sunlight = photochemical smog, you can never get hydrocarbons to zero because there are natural sources (Reagan used to say "trees pollute") so lowering NO is important.
(2) gets better fuel efficiency which improves range by countering the low density of every form of hydrogen storage; it's not a mature technology, it combines some of the difficult aspects of the ICE (from an Ashby [1] perspective it has all the functions of an ICE including fuel supply, air supply, cooling [2], exhaust removal [3][4]) plus it has the electrochemical problems a battery has.
[1] https://www.edge.org/response-detail/27150
[2] actually harder because the fuel cell operates a lower temperature!
[3] it's probably not running hot enough to remove water as vapor, if you can't remove the liquid fast enough the fuel cell it will clog up
[4] https://en.wikipedia.org/wiki/On-board_diagnostics was introduced to make it possible to maintain the complex emissions controls system; an ICE could be simpler if it didn't run under a strict pollution control regime, but a fuel cell needs a control system like that just to run reliably