You are absolutely correct. People absolutely do get hurt when they are discriminated against. As a second-class citizen in my country, I truly understand this.
The point I was trying to make was that the people doing the discriminating also get hurt in the process, thanks to lost opportunities such as the loss of this mathematician. There's really no benefit whatsoever to promoting irrational discrimination such as racism.