You only have a certain amount of traction budget to accelerate. You can spend that budget on trying to stop, you can spend that budget on turning. Spending it on both can end up with you losing grip and having less traction overall to achieve your goal. A modern car's computer will assist with trying to keep traction on the road so can be good to try to do both if you're not 100% sure what to do.
But also, turning often means you're going to enter another lane of traffic with potentially other cars/people/obstacles in there. So blindly swerving can sometimes end up with a much worse collision.
I'm not going to say you should always do X or you should always do Y or always do X + Y. There's a lot of situational conditions on that. But only kind of turning and only kind of stopping is probably not going to work.