IIRC, hydrogen contains less power per unit of volume than the fossil fuels, so to equal the gas/diesel vehicle range would require more fuel storage. Still beats electric, though.
Hydrogen has the highest energy per kg of any fuel but low density makes that a moot point.
https://www.energy.gov/eere/fuelcells/hydrogen-storage
“On a mass basis, hydrogen has nearly three times the energy content of gasoline—120 MJ/kg for hydrogen versus 44 MJ/kg for gasoline. On a volume basis, however, the situation is reversed; liquid hydrogen has a density of 8 MJ/L whereas gasoline has a density of 32 MJ/L, as shown in the figure comparing energy densities of fuels based on lower heating values.”
Interestingly methanol alcohol contains more hydrogen in a gallon of liquid methanol than a gallon of liquid hydrogen contains. Storing hydrogen in alcohols is a high density way of storing it. Reforming that alcohol into CO2 and H2 is a viable way to fuel a PEM fuel cell w/o having to resort to cryogenic temperatures to get to high density.