Some superior wizard-school series you can easily replace HP with:
🧙 Witch Hat Atelier
🧙 Little Witch Academia
🧙 The Worst Witch
🧙♀️ The Owl House
🧙 Mashle: Magic & Muscles
🧙♀️ Wizard of Earthsea (le Guin)
🧙 The School for Good & Evil (Soman Chainani)
The Owl House is just… I mean… hell, I ADORE that show, and I’ve never been more vested in a relationship than on that one. I haven’t seen the final movies yet—didn’t air in Canada and weren’t on D+ until months afterwards, AND I need to emotionally prep myself because I’m afraid it’ll wreck me.
I’d even throw in Kiki’s Delivery Service as a recommendation. While it’s not about a wizarding school, it’s about a young child who’s learning how to be a magic user. I haven’t read the novel, but the movie is wonderful.
Reign of the Seven Spellblades.
Some of it reads like almost a direct argument against HP, like actively having the character who starts campaigning for non-human rights ACTUALLY RISKING HER LIFE CONSTANTLY in support of non-human rights...
I also really enjoyed the Fairy Tale Reform School series by Jen Calonita for middle grade readers and Legendborn by Tracy Deonn for young adult readers.
Try my Worldweavers series, too. Book 1 in the series ("Gift of the unmage") has recently achieved the distinction of getting BANNED in Florida, putting me in some very fine company indeed (hello, Mr Gaiman, fancy meeting YOU there...)
🧙The Books of Magic (the original run if you can get it.)
🧙♀️Maho Tsuki Tai (Magic User's Club, a good classic Anime.)
🧙Ikenfell (a video game actually with a lot of LGBTQA+ rep.)
🧙♀️Any of the Discworld books with Rincewind as the protagonist
🧙The Abhorsen Books by Garth Nix (just a fave)
For older teens, especially those who identify as Ravenclaws and/or Slytherins, there's Lev Grossman's Magicians series (on which the show is based, although I haven't seen any of that yet)
Adding to the recommendations for @diane.dianeduane.com’s “Young Wizards” series. Been reading it since the late 1980s, and it is everything you would want it to be.