As I have said before, the only time I have ever been hit by a car was when I was riding on the sidewalk.
Cars just aren't looking at sidewalks because they don't expect zippy, fast things coming from them. They do look and see cyclists riding on the road.
I only take sidewalks if there is something more dangerous in a section of road, but I try to get back to the road as soon as possible.