Bottom line?: There is no free lunch.
Basically, hydrogen itself is a great, “clean” fuel. But to get it requires a lot of “dirty” input. So yes, the hydrogen itself is very clean, but the ONLY way to get it is, like solar, through very dirty processes (though yes, solar is way worse in that regard).
But you make hydrogen fuels with fossil fuels! And it is immensely cheaper to just use the fossil fuels at the get-go, and jettison hydrogen altogether.
Folks, there IS no free lunch!