I think anonymity should be permissible but discouraged. So no one is advocating for doxxing you and getting you in trouble at your day job.
But do you not see the problem here? Maybe there are 10 other people who work where you do who don’t dare speak put, and the censors believe all the compliant employees are in lockstep with their permitted world views. How would they even know anyone is dissenting? How would someone else at your work know to reach out to you?
But even beyond that, you undermine the views you hold by being unwilling to stand by them. And should you simply stating your opinion that Israel is committing genocide get fired, perhaps long-term it would be for the best.
And as I said, I don’t think anyone should be doxxed, but I think putting your name to your views and letting the chips fall should be encouraged.