There is no trolley problem. When vehicles are on the road and operating according to the rules of the road, there is no choice about whether to swerve to avoid something at the expense of another. Cars are not being commanded to leave the road to avoid crashing into something on the road. You stay on the road, stay in your lane, and don't get involved with people on the sidewalk, etc.
If there's a bicyclist, motorcyclist, etc, they are just as much a vehicle as you are, occupying their position in another lane, or in front/behind you. You stop in your lane, change lanes if safe, and that's it.
There's no, "sacrifice 1 to save 3" kind of argument.