I ride the sidewalks (slowly) when I’m riding on the main streets downtown. Buses are really big and heavy compared to me. The sidewalks are the shoulder downtown.
City riding no doubt calls for different rules. I don’t ride much in cities, or even in developed suburban areas. Nearly 100% of my riding is on back roads with nice, wide shoulders. I like it that way.