Gary Stu. A male version of a Mary Sue. seemingly perfect character with no flaws, or who always overpowers other characters.
Harry Potter has LOTS a flaws, who tends to have horseshoes up the ying-yang.
He also has a learning curve, and progresses as a character (be at as it is).
So no, I don’t consider Potter a Gary Stu.