I'm all behind the idea that cyclists largely belong on the street, not on the sidewalk. Sidewalks present at least equal danger and arguably more variables than the road (in my experience; not citing a study or anything).
...And yet. There are a couple of places in Denver on my commute where I just don't feel safe riding on the street, so I take the sidewalk. I always yield to pedestrians, and I have to be extra mindful of turning vehicles that aren't looking for me. But for this two-tenths of a mile or so I just don't feel good on the street because the drivers are always in a rush hour mentality, save sleepy weekends. There is a even a wide bus lane and that is not very safe, because then I have to jockey between buses and parked cars (and rogue drivers trying to save time by using this lane). It's scary! And I consider myself a competent commuter with several thousand miles of street experience.
What do you do in that situation? Suck it up and just learn to deal with it, or adapt to sidewalk riding for a brief distance like I have? Is there a third way? What is it?