Edit: Certainly the top priority is avoiding the car in front of you, and you should slam on the brakes to do it. However, once you stop, the Tesla should release the brakes (if there's an imminent collision from the rear) to minimize the impact to the Tesla driver and the car slamming into the back of him. Would be cool if the Tesla engineers added this (if feasible).