Yes, I’m aware. Hydrogen is a STORAGE tech. Not a fuel. CH4 is a fuel. Hydrogen takes a bit more energy to extract than is garnered from using it in a fuel cell, but batteries have storage/charging losses as well.
As far as trains, there should be a national project to electrify all of the main freight routes. If the USSR could do it in the 50s and 60s after a major crippling war, we can do it more efficiently today.