It’s certainly not the only foundation, but it is a foundation.
Darwinism is not inherently racist, race isn’t even real, it’s a social construct. You’ve been doing Nazi apologia, intentionally or not, by attempting to tie Hitler to actual, sound science, and pretending the science must be bad.