I don't want to Godwin this thread so early, but you know what analogy I'm thinking of. If you work as a developer for Google, Microsoft, Flock, CloudFlare, Facebook etc. etc. you are complicit in making the world a crappier place.
Did J. Random Hacker at Google decide to ruin Android app development[1] for everyone? No, but he made it happen. I hate that guy. (Also.)
[1] Edit: I'm referring to this nonsense: https://keepandroidopen.org/
You choose to have that perspective and be subject to that locus of control.
Where do you really draw the line? How do you feel about money? How do you feel about eating to stay alive?
Ultimately, this is not a philosophy debate. If you're confused about what work is, that's your own problem. The business is still to blame.