How does the quality of a PhD differ in Germany, Denmark, Sweden?
In Germany, there's a huge variability in the quality of PhD theses. The quality of a particular PhD and the benefits gained from it are mostly determined by the quality of the workgroup and its supervision culture.

To identify the good workgroups, you can simply look at the research output of their PhD students, in particular, publications at good venues.