And then what do you do with the hydrogen? Unless you plan on fueling your spaceship with it, you must burn it off to harvest the thermal energy... I'm sure you see the issue here.
Currently green hydrogen plants are expanding and ammonia | methanol marine fuel ships have been built and trialed - there are contracts signed and in the works to both build a 4,000 km HVDC "suncable" and to ship hydogen products longer distance.
However, I appreciate the point made about hydrogen escaping and causing embrittlement of materials.
Electricity is really just another means to the same end. You can't use all of the energy generated by a power plant, at the plant site, so you transport the energy to places where it's needed.