I think a lot of us do push back on the product owners and designers when something seems obviously bad. But I don't think it's good advice to encourage people to unilaterally declare themselves the gatekeeper just because they write the code.
That's not the call to action. The call to action is to refuse to participate in unethical behavior.
Software developers should have a professional code of ethics. Other professions have them, why not computer scientists, computer engineers, and software developers? There is the ACM/IEEE-CS Software Engineering Code, but I don't know any professionals outside academia that remain ACM members, IEEE membership might remain relevant for computer engineers, so I may well be wrong in that regard.
https://order-of-the-engineer.org/about-the-order/obligation...