Let's agree on words definition here. Racism is a nebulous concept. It has diverse meanings and it's politically instrumentalized, too.
Eugenics has different meaning as well. There is passive eugenics and active eugenics. Obviously, state planned eugenism (like Nazism) is an ugly concept; but...