Hydrogen is a much better solution for things like planes, trains and 18-wheelers
I don't think it's that simple:
Planes: will probably be best served by biofuels as it is easy to re-engineer jets to run off a biodiesel than the full redesign needed for hydrogen. Liquid fuels have real advantages and the public will think Hindenburg when they hear a plane is carrying compressed hydrogen.
Trains: Again, biodiesel is an easy lift and so is electric. Trains travel along fixed routes, simplifying electrification. Just look at the TGV and Shinkansen. Trains also don't have to worry about battery weight.
Shipping: It depends on the application. Long-haul ships could do hydrogen well. Short runs like ferries are already switching to electricity. Neither has to worry about the "bomb" mystique of hydrogen or weight.
18-wheelers also depend. BEV has a real potential here, especially for regional trucks. Biodiesel and hydrogen both have value for long-haul trucks.