Maybe, but true fairy tales, and mythologies before them, have some kind of point, and come from a time when everybody accepted magic as reality (still a few pockets of such, apparently) while Harry Potter is even less magical than Tom Swift.
Balaam’s donkey???