Basic science is why EVs have crushed hydrogen in light cars and trucks.
EV: take electricity, store it in battery (~90% efficient), pass electricity through drivetrain (~80% efficient)
Total efficiency = 1 x 0.9 x .08 = 0.72 units of transportation for one unit of electricity. And, this does not include energy generated from braking.
Hydrogen fuel cell: create hydrogen via electrolysis (~65% efficient), compress it into tank and decompress it back out (~75% efficient) then run it through a fuel cell (~50% efficient)
Total efficiency = 1 x 0.65 X 0.75 x 0.5 =0.24
You get way more transportation out of a unit of energy with an EV than with hydrogen. Hydrogen loses.