I didn't mention trams.
I wasn't making a general case that's applicable to every city.
I was talking about specifically about SF, which has relatively uncongested roads, bus lanes that are mostly empty, and where the busiest bus stops receive buses no more than ~10 times per hour.