Floor it and merge.
I can name many other scenarios, but generally, emergency maneuvers are helped by good control over the car, including braking, turning, and acceleration.
There are nice charts showing accidents per million miles driven by car, and the best ones I've seen are anyone, but not testosterone-promoting agile. Crash ratings are misleading since many of the safest cars in a crash also crash a lot more often and have higher fatalities overall since bigger cars are less likely to be able to avoid an accident.
The question is what I do about the incoming car I didn't notice.
A) change back and hit the toddler
B) do nothing, and have a fatal head-on collision
C) hit the brakes, and have a non-fatal head-on collision
D) speed up a little bit, so I can get back into my lane before the other car gets here
Your examples are comically dangerous
Edit: in fact, specifically you remind me of Richard Horne in twin peaks season 3: