You are correct, but that coking process doesn't have to be done with fossil fuels. Hydrogen (like you mentioned) is an alternative and you can create hydrogen using water and electricity.
In the NL we have a pretty polluting steel mill that is currently still coal fired. They are working on a transition plan where they adapt it to be gas fired instead, with the ability down the line to make it hydrogen fired when hydrogen production capacity is up to speed.