But also produced a lot of junk pseudoscience and rubbish when conmen were able to get the credulous endorsement of leaders like Hitler. Plus, you have to remember that Germany was one of, if not the leading scientific and technological powers of the age. In the 1800s and early 1900s, places like America and Japan were still making would-be doctors and mathematicians learn either French or German and study abroad there. Even after English started gaining steam post-WWI and Jews began fleeing Germany, there was still a ton of native talent and expertise.
Sure. Granted, they killed a whole bunch of people for e.g. the medical advancements. And the advancements are at least of dubious value[1].
And other advancements were... not as impressive as elsewhere. See e.g. nuclear science.
But the upside of science under a dictatorship is that you will publish lots of papers claiming successes, for personal health reasons, so you've got that going for you.