This. It's all about relative speed difference. If the cars are going slow then riding with them is no problem. If there's no (slow) people on the sidewalk then you can ride there.
Agreed. The one thing that is scary for everyone in these situations is the element of surprise. If you eliminate the "blowing through stoplights" or the hurry and brake fast behind a pedestrian, or worse, you eliminate 95% of the issues.