Acting within your morals is not incompatible with serving the company's interests. Especially if it means your team is very much still competent while maintaining a culture that is healthy. That leads to better delivery.
Avoiding working in deeply unethical areas also shields the company from legal or PR liability.
It is compatible if you align your actions with the morals of the company. A big sign that you are not aligned with the values of the company, if you do not want anybody within that company (especially your boss) to know on what moral grounds you make your decision and justify your actions.