Only to decide to recommission them in many places, increasing the heat-attack rate for those trying to get to work on time through the 6 year long construction zones.
From my point of view trams have no advantages over buses. On the other hand they need lots of special purpose infrastructure and often condition road traffic rules terribly, like forcing traffic lights instead of roundabouts. Actually I am open to hear the advantages of trams.
Running on rails is super efficient once they are in place. Less resistance, less wear and tear. For high-frequency routes, they really are great. But for new routes, trolley buses are probably a lot cheaper to set up. Maybe use trolley buses first, and only switch to trams once it's clear that this really is a high demand, high frequency route that's not going to go away.
Still, I feel that trams will be dying soon. The improved efficiency is simply not enough to justify the extra infrastructure and inflexibility. Modern battery electric buses have a range of 500+km and can thus be used for an entire day, and charged at times when electricity is cheap and green (ie overnight on wind energy).
Battery electric buses require batteries, which may be flexible, but are also expensive.
I don't see existing trams and light rail disappearing soon. Not in cities that have well-functioning networks, like Amsterdam. But I can imagine that for new projects, electric buses are preferable.
One of the major problems with anything that isn't on rails is that it is easy to make go away. Unironically one of the reasons for trams is that it's harder to rip up the tracks and delete the service entirely as opposed to bus routes which can vanish in a single day or be altered in incredibly dumb ways. Of course, if you're sufficiently destructive you can rip up any infrastructure.
They are far more comfortable than buses. Larger too. If you rely on public transit, then your city switching to trams for the highest frequency routes can be a significant quality of life improvement for you and the many thousands of others who will use them every day.
That isn't their only advantage, but it's one which is often overlooked.