no. discrimination happens because barring anything else, humans tend to be tribal.
Laws are nearly meaningless things.
For laws to effective you need:
Law enforcement that’s properly trained and effective without abuse
A court system that’s achievable for anyone to participate in
Without those, anything goes in most places. Laws are almost meaningless without proper enforcement.