> it's more ethical to stand up for what's right even at personal cost.
Employment is a business transaction not a transaction based on ethics viewpoints
If you're not being ethical in your business transactions and decisions, you're bad at business. And life.
Just because there's no law saying you have to have ethics in software development doesn't mean you shouldn't have ethics in software development.
that's the attitude of an unethical person, yes
(also that of a "non-ethical" person, like an animal or a person with no agency in the matter, if you want to make the distinction. I'm not sure we should but I guess it's an interesting question)