Most hydrogen is produced from methane and is actually worse than gasoline for global warming because methane leaks and is a far more potent greenhouse gas than CO2.
It makes indeed more sense to just use renewable gasoline, e.g. using the Fischer-Tropsch process like VW's eFuel.
Not everything is a consumer car and truck. Being a battery maximalist prolongs the time everything else runs on dead dinosaurs.