> my tram lines with dedicated lanes don't have those problems
Dedicated lanes is the biggest factor. Plenty of trams don't have dedicated lanes, in which case the significant cost premium is a complete waste.
Buses can also have dedicated lanes with right-of-way. The ones I've been on in Mexico and Ecuador were quite nice. While I personally find rail more comfortable and also appreciate how route permanence effects property values, as a taxpayer even dedicated lanes and right-of-way don't justify the costs.
Historic lines are a different matter as the initial capital costs are already spent, and even if they cost more to operate it can still make sense. So it does suck that old lines were destroyed. But if you're gonna build new, I just can't abide paying the ridiculous premium for rail unless they're going underground or otherwise grade separated for a significant portion of the line. But if they're grade separated then by definition they're not really trams.