You've touched on the whole problem with the "cancel culture" of today.
Scientific and political beliefs often do not stand the test of time, but is it fair to blame the people of past eras for their misjudgements using the values of today?
How do we know for sure when we're right about something?