There are 3 possible outcomes:
1. Car 1 and Car 2 crash into each other killing all passengers.
2. Car 1 with 3 passengers drives of the cliff, car 2 with 1 passenger survives.
3. Car 2 with 1 passenger drives of the the cliff, car 1 with 3 passengers survives.
The cars can communicate with each other. The logical resolution would be to drive the car with the least passengers off the cliff to save as many lives as mathematically possible.I don't know how I would feel about my car killing me although logically I wouldn't have a chance of survival anyways.