I dont ride in the city for this reason, but if i was, i would
Probably be stressed from drivers almost killing me all the time too. The real answer is dedicated bike lanes so they dont need to share space with pedestrians or drivers. Building bike infrastructure is also a good way to fight our obesity crisis.
We recently visited Boston. They have a very together
trail map that marks routes green (no cars, may cross streets), yellow (designated bike lanes on roads), or red (busy roads, may or may not have bike lanes). We got a 24-hour Blue Bike service and rode 34 miles, almost all on the green trails. VERY enjoyable, other than high-speed cyclists.