Florida East Coast did a project with LNG powered locomotives. Natural gas is an excellent alternative to diesel on long haul trains. Hydrogen can be easily stripped from natural gas, the problem is with its containment.
I'd vote for LNG over H². Less energy input required to convert to something useable, less modifications required to the prime mover to make it work.