This.
In this case it doesn't matter what you do as long as you do it fast enough. By "doesn't matter" I mean that there is no clear way to avoid damage/injury, but the quicker the reaction, the greater are the chances of avoiding it. First instinct is usually to hit the brakes, so stick to it...