It's true that ultimately there aren't a whole lot of morally "good" things you can do with your compsci degree at the moment. You can work in adtech or building corporate software, ecommerce, etc. to sell plastic trinkets to people and raise your company's stock price. Or you can do ML, which will probably hurt poor people in the near to mid term and probably contribute somewhat to the more Orwellian aspects of mode…
Doing the right thing — not what’s profitable or power enhancing — isn’t what business is about. In part that is because survival and solvency are quite difficult in the details; and in part that is because doing “good” requires a much richer concept of what you are doing than is required by being profitable and placating shareholders. It’s easier to get it wrong, harder to say when you’re done and can move resources…
If only society / the global economic system wasn't set up to incentive profit over all else....