When I tried to read Harry Potter many years ago I got very disappointed after finding to many similar elements from one of my favorite books Earthsea by Ursula K. Le Guin.
Some of those elements:
A young and chosen-one like magician: Ged --> Harry
A school of magic for kids: Roke --> Hogwarts
The rival young magician: Jasper --> Draco Malfoy
Roke is in an island that is protected by magic and can't be reached or seen unless you are allowed to do that --> In Harry Potter the same happens with Hogwarts.
In The Wizard of Earthsea it is mentioned that Roke is the most secure place in the world --> The same is stated in Harry Potter for Hogwarts.
Ged's mother died before he was a year old --> Harry's parents died when he was a baby (of course in a more tragical way)
Ged's father was very grim with him so he grew wild --> As Harry's uncle family
The Archmage Nemmerle is the protector and maximum authority of Roke, named the Warder of Roke and older than any man living then, he has a pet raven --> Dumbledore the most powerful of his time, head and protector of Howarts, very old who has a phoenix as pet.
The environment in both schools seems to be very similar, groups of kids taking classes with different wizards, mages, etc.
In the school Ged inspires admiration and envy because his skills and rumors say he will be Archmage one day --> Harry Potter inspires admiration and envy for the same reasons + the prophecy.
And many others that I may be adding later.
Of course both works are not exactly equal, being the personality of the main character the most apparent difference. One is arrogant and fearless while the other is shy and conservative in some sense.
In my opinion Harry Potter has nothing to don in terms of technique, the Ged's saga is lot more interesting and detailed. Maybe not as commercial as HP but that is what makes it better in my opinion.