Until in 5-10 years when the batteries are fucked.
That’s the beautiful thing about trolley buses - they do not need a (substantial) battery. They are basically trains on wheels.
There are some places where battery powered buses make sense - for example, where I live, lucerne Switzerland, there is one bus line that just goes up and down a rather steep hill. By using recuperative braking, the battery powered bus is super efficient. For other, normal ‘high traffic’ lines, trolley makes so much more sense
Trolleys don’t really make any sense. I come from Riga, it has a lot of trolleys and the city is designed around trolleys and trams. And yet modern trolleys have bloody diesel engines, because being permanently hooked to the wire makes no sense at all. It’s much better to have electric buses with a few overhead wires here and there to fast charge on the go.
Lucerne has a few trolley lines. They are ONLY trolley buses. The long, 3 Segment ones. Then, some 1 Segment hybrid buses that have pantagraphs. At the end of those lines, there is a longer stop where the trolley lines end, the pantagraph gets pulled down and the bus trucks along the last few stations with diesel.
Then theres just normal hybrid buses for more rural lines, and a battery operated bus that goes up and down a hill.
There’s a solution for every line - you just need the proper infrastructure. The reason that we have this great pantagraph-compatible infrastructure is that, while there are a lot of trains in Switzerland, there is no metro. So in lucerne, the trolley buses work almost as a metro, with the main lines having buses every 7 minutes.
… why not have as many cables as possible so you can simply minimize battery size? Trolleybuses are just more efficient battery buses.