Law doesn't do anything "magically." It does things by shifting incentives and establishing punishments.
You can't legislate bigotry out of a bigot, but you can minimize the suffering they cause other people. This is what anti-discrimination laws aim to do.
Are you just here to sneer or do you have an actual point as to how effective this legislation is likely to be? Anything from obviously effective to utterly pointless laws can be derided as an attempt to ‘magically get rid of’ a problem.
Legislative action moved women from holding 13.97% of professional roles in the United States in 1966 to holding 50.56% of professional roles in 1996. Even rarely- and poorly-enforced laws can, over a period of just 30 years, dramatically shift the corporate landscape.
Gotta read this post. It’s a quick one and explains how India’s caste system is being used at the workplace by fellow Indians to remind the that they are still ‘untouchables’ and do so in a matter that materially impacts employment.
You can't legislate bigotry out of a bigot, but you can minimize the suffering they cause other people. This is what anti-discrimination laws aim to do.