By that standard the older the man, the worse he is and you'll arrive at the conclusion that nearly everyone flawed character in the olden days when racism was mainstream.
But we need not even go any further than Charles Darwin:
"The variability or diversity of the mental faculties in men of the same race, not to mention the greater differences between the men of distinct races, is so notorious that not a word need here be said."
"Nor is the difference slight in moral disposition between a barbarian, such as the man described by the old navigator Byron, who dashed his child on the rocks for dropping a basket of sea urchins, and a Howard or Clarkson; and in intellect, between a savage who uses hardly any abstract terms, and a Newton or Shakspeare. Differences of this kind between the highest men of the highest races and the lowest savages, are connected by the finest graduations."
http://heretical.com/darwin/darwin4.html
Sources cited at the bottom of that page.
It's an extreme example, yet an unfortunate practical one today.
But equally there are plenty of examples of extremists killing people who are trying to show them why their ideas are wrong.
Why are you assuming these people are rational actors?
However, the difficult part is two-fold. One how to define the line of unacceptability (for example, calling for actionable violence against someone) and how to enforce that line and keep it steadfast (unwavering in the face of both antagonists --the ones for more control as well as the absolutists).
I know that people might intend Twitter or blogs to be for friends, but it's mass media nonetheless.
I know some foreign parents who have a preference for their home country and will tell their kids that <some thing> from their home country is better than <same thing> from neighboring but "rival" country. In a way this is stereotyping --but I'm seeing you say these parents should not talk to their kids about having some favoritism to their home country because this kind of connection building can "stereotype" the people from their (ancestral) neighboring country.
I don’t know how things were where you lived, but where I grew up, those types of jokes were definitely meant to be mean and hurtful. I speak from experience when I say that the repeated mental abuse from peers taken as a child can have long term effects on one’s psyche.
Wars can then force people to see other stereotypes as characteristics of bad things. Kind of like the caricatures of Nazis and Japanese Imperialists. When Japan went into Nanking, they didn't need some psychological trick to enable them to go on their campaign any more than the US or USSR needed psychological tricks to bomb Dresden or East Berlin.
I have several friends who I know hold some less-than-sociable opinions, and they do tend to keep them to themselves.
I don't quite know how to frame what I'm about to say, but I feel it's equally dickish to think that becoming someone's friend is a "waste of time" just because you don't agree with their opinion.