I’d rather be known as a person who sticks to my principles and strives to do good work than someone who molds myself into whatever shape is necessary to succeed.
This isn’t to say that one should be blind to political realities, but to actively participate is to perpetuate the problems at best, and to destroy one’s reputation at worst.
These environments need people who challenge the bullshit. And in tech, we’re pretty privileged in that it’s generally going to be possible to find something else if necessary.