Hamas is the elected body of Gaza. It also has over 75% support according to several polls post 10/7. By all means it represents the interest of Gaza’s people whether anyone wants to admit that or not.
You could argue they should be, but what is and what should be are entirely different things.