
Lots of cool religious stuff in the Harry Potter stories.
One first is that it tells of practical and realistic forms of magic, as like a person can not fly but there could be a type of flying machine which looks like a broom. That changes the magic into some thing possible.
Also the magic comes from a wand and people could conceivably make a wand that works wonders.
Having a love potion is realistic which looks like magic, or any sort of potion can be created to look like magic.
A lot of religious people (especially Christians) have the mistaken idea that any true miracle has to happen like magic without any realistic mechanism, and that kind of magic is not really the way of miracles. So Harry Potter comes closer to reality then does a lot of the religious mysticism.
As like having a baby is a miracle, and flying in an airplane is a type of miracle, and people breaking the bonds of addiction is a real miracle - and so Harry Potter does fancy kinds of miracles and calls it to be magic.
Next if we think about it (as I have) then the discovery that the planet earth is spinning around the Sun at high speed and being held in the perfect position by invisible forces - then that is a by far a bigger and more spectacular miracle than anything told in the Bible, and it is far more magical than anything done in the Harry Potter stories.
Truth is stranger than fiction.