More to the point, the intellectualized racism that infected the West in the 19th century was the brainchild not of science but of the humanities: history, philology, classics, and mythology.
Steven Pinker, Enlightenment now: the case for reason, science, humanism, and progress, New York, 2018, p. 398