Perhaps you should google a bit better. Some hydrogen fueling stations use electricity to generate hydrogen. So they use the same electricity as an EV. And even with hydrogen made from fossil fuels the CO2 footprint is lower due to higher efficiency. The latter may ofcourse change when more bio-fuel is used.
If you use electricity to generate hydrogen it's always going to be much less efficient than a BEV by orders of magnitude. So if you use the same electricity to charge batteries and generate hydrogen BEVs are going to be a much cleaner option.
If you use fossil fuels (like LNG) to produce the hydrogen you might as well use gasoline directly. It's always going to be more efficient to burn the fuel directly in an ice than first converting fossil fuels to hydrogen and then use the hydrogen as fuel in a car.
For hydrogen to be clean it has to be produced by only using something non-polluting, like wind, solar or nuclear energy. There are some work in China on pebble bed reactors for hydrogen production but I don't know how far they have come. You could also potentially use solar and wind when there is excess production capacity. So it has potential to be cleaner than fossil fuels but currently isn't.
To tell if a battery EV or hydrogen hybrid EV are better we would need a proper well to wheels life time analysis. I suspect the added complexity and extra conversion steps to produce hydrogen is always going mean it will be less efficient than simply charging batteries directly though.
(That picture doesn't tell us anything about how the hydrogen is produced, only that someone have put some solar panels on a roof that couldn't produce anywhere near enough energy to fule those busses.)