With electricity, each thing we convert from petrochemicals to electricity, prevents us from offlining the first power source we'd otherwise decommission.
And the first thing we'd decommission would be the dirtiest power plants, eg Ng, coal, or some such.
H2 can be made clean, and so can electricity. No difference.
What we need to do is scale up clean h2, and support it. More clean tech is better, it's not a competition.