I expect an autopilot could deal with that situation much better than a human as well. It should be able to predict if the car behind won't stop. Certainly better than a human driver could (if the human would even notice the car coming from behind with that happening in front). Then, assuming there is some space open in front, as there was in this case, it could accelerate to avoid the collision from behind. Now I'm curious whether Tesla's autopilot is already programmed to do this.