edit: grammar
As for intercity travel, this should be set up as rail, not a bus, in basically 100% of cases.
It's also, I would guess, a lot more difficult to get off the ground. With battery powered buses, you just buy however many buses, and throw them on whatever pre-existing route. With a trolleybus, you need to install the overhead wire system before you can get started.
And then, I would imagine the overhead wire system itself becomes a problem. Do you have to worry about transporting oversize loads on or across the same streets? Is it going to become another electrocution hazard for people who need to work above the street? etc.
That's not to say there aren't advantages to trolleybuses, too. Just that the claim that it's "in every way superior to batteries" is an overreach.
So detours and overtakings are no big deals.
I guess it can be improved thoug.
Metro, trams, trolleybuses should be used primarily and then you can add electric buses for gaps. That would make sense, not trying to go straight for the most expensive and wasteful option.
Modern batteries can go for decades.
A battery based system is far more flexible, you can uses buses all over the place and dynamically adjust routes based on demand.
Overhead wires are also significantly ugly to have in a city.