In all those examples the cyclist is still the one with the highest stakes by far. When a cyclist runs a red light it's vastly more probable that he get killed than that some innocent pedestrian gets killed by a swerving car (and the chances that the driver of a car gets killed are basically 0). While that doesn't absolve them of all responsibility it is morally much more justifiable than for example a car speeding.