Unlike many other animals, humans have the capacity for abstract thought, moral consideration, and behavior not entirely driven by instinct.
As such, we can recognize the harmful effect of fallacies such as racial prejudice, both on ourselves and on society as a whole, and utilize our ability as sentient beings to avoid such behavior.