Edit to add: also worth noting that electrolysis currently amounts to about 5% of hydrogen production. You basically can’t remove fossil fuels from the food supply without lots of alternate energy input, so this is not a short term fix short of spooling up all kinds of nuclear reactors.
I’m not saying it shouldn’t be done, and maybe if we need to be dependent on fossil fuels for any one thing then we should prioritize food supply rather than literally burning them (or worse, venting them to the atmosphere as is often done with methane), just trying to set the right expectations for people who might be learning all this for the first time.