Hamas, as mentioned, is an offshoot of the Muslim brotherhood. The Muslim brotherhood still exists in Egypt, despite Egypt not oppressing Muslims. Hamas might not have split off into a separate organization, but they’d basically still exist without Israel.
More to the point, though, why Israel? Why did Jews want to establish a state in Israel? Are you really going to argue that had nothing to do with religion? The second intifada was literally caused by Ariel Sharon visiting the Al-Aqsa mosque. Clearly, that had nothing to do with religion either.
I’m not saying that the conflict is purely religious. It’s a complex blend of religion and politics.
Arguing that religion has nothing to do with it is ridiculous.