Pretty easy to say, but if someone is going to quit their job because they think the cookie banner they've been ordered to program will annoy people, they're either absurdly privileged or comically stupid.
It sounds like you're at least privileged in the sense that you have the apparent option. For a lot of people it's a serious deal to pursue alternate employment, especially if the conditions they are seeking to avoid are a common practice in the industry.
yes individualism is the answer; collectivism is also the solution, everyone should do what they think is the morally correct thing and the whole garbage pile will suddenly go away, nobody will starve and Great Leaders will be no more. This has always worked in the past. Leadership be damned! I am important and smart enough to do the right thing!
This whole "Don't blame me! Boss told me to do it" attitude is rampant in software.