I actually think the bigger problem is artificial scarcity. Say you and someone else are bidding on a house. Your job is a net good to society and pays x, and someone else has a job which is a net harm and pays 2x. Now you need to decide whether you want a home or want to do something good.
This is only possible because homes (which are not hard to build) have an artificially constrained supply.
There are companies doing genuinely good out there. Maybe the pay is less(though I’m well compensated), at least you’ll work towards a better future.