I don't know about this one. Sometimes it's important to take a principled stand. I was at a stocks company for all of two weeks, hired by a former friend. The very first day I was told not to email the security team directly and that all my emails from then on must be approved by my team lead. Within a week, I was told to lie to the security team. I spent most of those two weeks either in meetings or as a glorified page.
I really felt abused, devalued, and a tool for the shitty ethics of the corporation. So one day I pull my team lead and the other lead into a Zoom meet and unload and quit. I get myself on LinkedIn, canvas a few available jobs and within two weeks get a new job. In the interviews I made it crystal clear that I valued transparency and that I would not be forced to lie to anyone. Turns out that's one of their cultural pillars (transparency is an entire slide in their slide deck).
I have a manager I can honestly engage with. He knows what happened at the last company and he values that I spoke up.
These principled stands are not for nothing. We have to be able to believe in our own ability to have a social impact, however small. Shutting up and inoffensively walking away just buttresses shitty people (or shitty corporations, which are just egregores that have been hijacked by shitty people).