It’s Israel’s stated goal. But without proffering any alternative, it’s rather flimsy as an excuse. They don’t want the PA - hell, Israel funded Hamas specifically to sideline Fatah and the PA - and they’ve done nothing but enable Hamas’s suppression of alternatives in the Gaza Strip. The goal, quite nakedly, is a land grab, and excuses about Hamas are nothing but smokescreen.
Put it this way - if you want to wipe out a country entirely, recognize one group as the ruling authorities (Hamas), and then demand nothing short of that group’s total and unconditional surrender, with the implication that they’ll all be prosecuted as criminals afterwards.
Regimes, and especially gangster regimes like Hamas, generally do not surrender under such circumstances, so it’s carte blanche to continuously attack the country without having to worry about things like “Their government already surrendered, you bombing these cities is starting to look like mass murder”. You can just say, “No, no, the organization says they’re still fighting, so we’re definitely just cleaning up terrorists here! The onus is on them to give themselves up, not for us to stop bombing! The civilians are dead because of THEM, not us!”