That's like saying the Nazis were not Germany and vice versa.
That is technically correct.
Hamas governs Palestine (to be precise, Gaza).