It is absolutely a religious matter, the genocide is being carried out because Netanyahu only sees Palestinians as a horde of Muslim squatters on Jewish territory that is already surrounded by dozens of hostile Muslim nations.
He wants Israel to be secure against basically the entire Arab world, which he doesn't think is possible while Palestinians remain in Israel.
The entire idea is that Israel can only be for Jewish people.