Hydrogen is anything but “single-use.” We will need it for long-haul trucking, large ships, trains, airplanes, construction and work equipment, farm equipment, etc. Not to mention solving grid intermittency, making steel, concrete, ammonia, providing industrial heat, etc.
If you think the problem through, the hydrogen infrastructure we need is going to dwarf the battery and electricity infrastructure. This is all before we consider hydrogen powered cars.
Why would trains need hydrogen? Almost all are electric. If they aren't in your region, why not convert it to electric? Large ships, why hydrogen? Seems again not a good solution.
Trains are diesel-electric. In practical terms, they're still internal combustion powered. Switching everything over to fuel cells is way simpler than setting up tens of thousands of miles of overhead power lines.
There's no path to powering a large ship with batteries. I'm not sure if you understand the physics behind it, but it pretty much has to be a hydrogen based fuel. Either liquid H2, or a derivative like methanol or ammonia.
If you think the problem through, the hydrogen infrastructure we need is going to dwarf the battery and electricity infrastructure. This is all before we consider hydrogen powered cars.