Diesel vs electric is a false dichotomy. Many cities in north america have natural-gas powered buses, and a lot of taxi fleets are CNG as well. Then there's also old-style cable cars and overhead electric lines scattered around, too.
CNG hybrid busses are gaining traction where I'm from in Europe https://www.vanhool.be/en/public-transport/exquicity-brt/cng...