The only morally and ethically sound answer is that it will take the action that will cause the least injury. There is no case where the 2 or more people involved will take the same amount or severity of injuries, so in this case no one is chosen for being in the car or out of it.