Edit: Where I lived in Germany, most parking lamps are at the house-side of the sidewalk. Can't run charging cables across the sidewalk everywhere. Trip hazard.
Most people in cities don't use their cars much either. Tesla is already building super chargers in cities. If you only drive in cities and you really only park at spot where there is no charging, and you can't charge at work. You can just go charging at a super charger once a week or so.
To suggest hydrogen is a better option because of this very limited single concern, public parking in cities, is crazy in my opinion. Also the city could let a company do it as long as they get part of the money, and in fact this is already what many companies are doing.
And yes, the infrastructure roll out will be extensive and take time, but it can happen slowly over time as electric car adoption expands.
Do you really believe it's easier/cheaper to retool the gas infrastructure for hydrogen than adding more chargers? All house have electric plugs (enough to charge overnight) and parking lots and most sidewalks too (cf https://thedriven.io/2020/03/24/siemens-converts-all-lamp-po...). Most EV don't need to be charged more than once a week, too.