Yea, vote green and if you only have no green party then you probably need to reform your election system… But first, inform yourself about the basics on election systems https://youtube.com/playlist?list=PLqs5ohhass_RN57KWlJKLOc5xdD9_ktRg&si=qW8Imga8bgD1dV4D
I mean a autonomous vehicle should be programmed to not speed and even not drive faster than reasonable in the present condition.
In switzerland we have a law that you are not allowed to drive faster than the speed with wich you can come to a full stop at the farthest spot on the road that you can see. (So in a curve you have to drive slowly, because there could be something on the street right in front of you.)
If a autonomous vehicle respects such rules, then it at least has eniugh time to calculate several outcomes and choose one which has the least damage potential.
The trolleyproblem is not applicable here as its not a theoretical situation but a practical one.