When society is prejudiced against a group (not the fake prejudice that society complains about - major broadcasters like Fox and CNN are both probably championing groups who have plenty of support from society, but maybe other groups are actually marginalised but it wouldn't be broadly OK to say it if they were) then it's not society's moral code that helps them (if anything it hurts them), it's businesses that only care about money who will still deal with them.
Most argue that subconscious bias and wealth inequality due to historical reasons are a significant part of discrimination. I've not met someone 'anti-discrimination' who believes there is a deep conspiracy of people working to instill discrimination across society.
In modern times in the western world, conspiratorial sort of discrimination seems to me to occur more in pockets or if the culture of an organisation goes bad and festers. But it's rarely overt or widespread. More subtle and nuanced forms of discrimination are still everpresent of course, but everyone I discuss and work with in these issues knows this all too well.
This "corporations should be cynical sociopaths" idea is even newer than the limited liability corporate form, which is itself a modern invention.
Before the current era of hyper-institutionalization and hyper-legalism there was a concept called "natural law". It basically meant morality, as understood at the time.