But the Ugly Duckling is a pretty simple story with a pretty simple moral while HP has a more complex background and different examples that can be examined.
To point something out, I thought that much was pretty obvious, unless you really are visually impaired.
But that's okay, I have no bias...