I’ll give you a real life example proving you 100% wrong.
My BIL was waiting to turn left on a two-lane road with 55-65 MPH traffic. He looked in his mirror and saw a car coming at him and clearly not slowing down. He floored it, and got rear ended with a speed differential of probably 35MPH rather than 60MPH.
Edit: Here’s another I just remembered. My father was driving 70 on a divided highway. Looked in his mirror and saw somebody coming up fast, so he accelerated, trying to get out of the way. (There was no space to get over.) The driver behind continued coming apparently in a big hurry, and my dad realized too late that he wasn’t going to slow down. Even having accelerated he got rear ended, but the speed differential was not bad, and it meant my dad didn’t lose control in heavy, high speed traffic. (The other driver had fallen asleep.)
In neither case is there an example of putting yourself in danger. Just proper driving. In both cases pressing the accelerator was the single most important safety action taken.