The democratically elected government of the Palestinians in Gaza(Hamas) has for a long time quite openly advocated for effectively genocide Jews/Israeli's, it's not racist to simply believe that Hamas is telling the truth in regards to what their end goals are.
There's no such thing: the separate authority in Gaza was produced by Israeli military isolation of the separate parts of Palestine nominally administered by the PA, and how that facilitated Hamas local victory there in the intra-Palestinian civil war against the central government.
Also, the elections that were won by Hamas candidates before that were before most currently living Gazans were born, much less eligible to vote, and subsequent elections have not been held because Israel blocked the all-Palestine elections agreed to by Hamas and Fatah, so even if the “government of Palestinians in Gaza” were simply a direct result of those elections, which it is not, it would hardly be the “democratically elected” by those currently governed.
There's plenty of evidence that the Israeli government is composed of people with a similar outlook, just with a power imbalance that affords them the opportunity to be more politically sophisticated.
History rhymes - I'm pretty sure that Jews in the Polish Ghetto had pretty negative views about the people detaining them there. Do you hold that against them?