Actually, it is different, and better.
As I said above: You might say lying is wrong. I might agree with you, generally. But if you were in Germany in the 1940’s and lied to protect a family from being killed for their race, did you make the wrong choice? Of course not.
Discrimination, like lying, is not inherently wrong. It always depends on context.
Discriminating in favor of the already privileged is obviously wrong. Do not make the mistake of equating this to discrimination in favor of the underprivileged.