The equation of Palestine with WWII-era Germany, and Hamas with the Nazi party is hilarious.
The difference is only in capabilities. Gaza (not Palestine, West Bank doesn't have nearly enough autonomy to really build anything.) was a territory with a very high degree of autonomy and independence. After Israel withdrew from Gaza and forcefully removed every Jew from there (who were kicking and screaming), the local population got a chance to try to build whatever society they wished.
They spent almost two decades of relative independence to build a militaristic, genocidal, totalitarian society. And on October 7th they made a mini-Holocaust. Mini - because they are not Third Reich in resources. And they suffer the consequences of their actions and decisions.
If they built something different Israel wouldn't bomb them, furthermore,l if the withdrawal from Gaza was a success, it is rather likely that Israel would also pull away from the West Bank, dragging local Jews away by force, too.
Now, Israel won't be giving anything to Palestinians until they persuade them that they have changed. No amount of sanctions or international pressure will make Israel repeat the mistake of pulling out of Gaza in 2005. If Palestinians want some kind of two-state solution, they'll need to prove Israeli that they are ready and capable to live in peace.