“..electricity or hydrogen..”
Proper containment of hydrogen at high pressure is a bitch - smallest known molecule in the universe.
No, it is a BITCH AND A HALF. liquid hydrogen take cyrogenic tanks to hold it and it can not hold it forever. Just think about a closed parking garage with hundreds of cars "leaking" a little hydrogen into the air. This is not good. If you use high pressure gaseous hydrogen you are talking about a tank of gas under several thousand pounds per square inch of pressure. Not good, not good at all!!!!Also, due to hydrogen embrittlement you can not use high carbon steels as a containment vessel. Unless they solve the problem of storage via metal hydrides hydrogen will never be a source of power for cars and trucks.