A management training course I took 20 years ago said when your personal values were out of step with the company then you had to leave for your own mental health. I've thought about that a lot since.
It's better to leave as long as that option is available to you.