The book in question in the Scopes trial, “A Civic Biology”, was very racist, as is evolutionary theory.
Instead of all “races” of humans being descended from the same created humans, some races are more evolved than others, and conversely, some races are more closely related to animals.
<<<<<<
of the five races or varieties of men found today, some are clearly more evolved than others. There are, Hunter claimed, the four lower types of humans, including the Ethiopian or negro type, the Malay or brown race, the American Indian, and the Mongolian or yellow race. Finally, Hunter concluded, there is the highest type of all, the Caucasians, represented by the civilized white inhabitants of Europe and America.
<<<<<<<
It's true that the word race had both meanings in Darwin's time. But, in the context of his book, race referred to species.
Darwin was a total racist.
So were George Washington and Abraham Lincoln and pretty much any person in history, judged by today's standards.
The early 20th-century racist/eugenics movement came directly from his inspiration.
And the Nazi death camps were only possible because of railroads and chemistry. All Darwin did was describe a natural process (evolution). Others decided to use his discovery for their own political or social ends. But, that misuse in no way discredits the science behind the TOE.