The thing is that if you use grid average electricity, a BEV will pollute maybe 50% as much as a comparable ICE vehicle. (Varies from place to place, but 50% isn't very wrong.) When you produce hydrogen from that same electricity, you need something like 3.5 times more electricity per mile, so those 50% of an ICE vehicle turn into 175% of an ICE vehicle. So basically, every hydrogen vehicle is almost twice as bad as a comparable ICE vehicle.
Why go for a technology that will never be as good as battery electric? Battery electric is here, it works, it's convenient, it's environmentally friendly. We just need to scale it up.