I thought this article on Denmark had some important insights.
I had a discussion with a Danish historian 25 years ago. He said the same thing. It was not a miracle. But the German leadership in Denmark didn’t want any problems in Denmark. So they told every Jew to leave, indirectly or directly.