The problem with your logic is that the car that pulls out from a turning on your side of the road is NOT an immovable wall. It is all about the energy that needs to be dissapated in the crash.
Your car: E=m*V^2
Other car on the road: E=m*V^2
Car on side of road (very low speed): E=m*0^2
Thus hitting the car on the side of the road means that half the energy must be distributed over both vehicles, when compared to impacting the one in the opposite direction.
Rather than giving the cars knowledge of ethics, I'd prefer the car is given knowledge about physics.
Lots of energy can be dissapated in controlled crunching and spinning, rather than into acceleration of meatbags.