In both cases, zero or less value is attributed to the lives and minds that are being assaulted and extinguished on a loop (though the value is below zero in the Nazi case and sits roughly at zero in the animal experiment case). This isn't entirely fair, since I'm sure most researchers do attempt to prevent animal suffering from being the most utterly barbaric it can be due to ethical rather than selfish reasons, but I think anything that's moderately barbaric or below is still considered justifiable in their minds and I think attempts to "soften" it do mostly fall into the selfish defense mechanism category.
I understand the great benefit to scientific progress afforded by such experiments, but there was some long-term benefit from human experimentation during WWII, as well, and there probably could've been much more future benefit if those regimes had won.