The function of the law is not to provide justice or to preserve freedom. The function of the law is to keep those who hold power, in power.
When you are faced with prejudice, logic and justice are impotent. Still, we may have an obligation to argue directly into the face of the prejudice, even though there is no chance to win.
It is an anomaly that we can split the atom, but we are nearly powerless to persuade each other to embrace justice.