Unless the destination of the electricity is also next to the local collection network the pipeline can be simpler. It's certainly not going to be a worse idea.
Simpler just to avoid all that and generate the hydrogen at large separate electrolyzers at the side of the utility-scale solar field (say), and then inject into the pipeline.