A good option (which is being implemented in Lyon) is IMC buses, battery-supplemented trolleys (or electric buses with pantographs): they can go off-grid for segments where the grid hasn't been built (not enough traffic or whatever) and it allows for spot-charging at bus stops.
Seattle used to have a lot of dual electric diesel buses that would be diesel outside of the downtown bus tunnel and then catch onto overhead lines before entering the tunnel. However, this didn’t really work out very well (hooking up to overhead wires was error prone). They just use NG buses these days
The overhead lines do force King County Metro to avoid changing routes (a boon for local riders), and are 50% faster at getting the bus up to speed after a stop. Short of something wrecking the overhead lines on most of a route, I doubt they'll be retired soon.
Electric also makes more sense in Seattle because 70% of its electrify comes from hydro.