The way that Hamas treats Palestinians is partially the responsibility of Netanyahu and the Likud given that they provided Hamas with material support to take power in the first place. Also, the fact that Israelis stormed an IDF base in protest of the punishment of IDF thugs that anally raped innocent Palestinians to death with rifles tells me a lot about what Israel thinks of all Palestinians, not just the ones that are actually part of Hamas.
Edit: Here’s an article describing the way the IDF treats doctors and paramedics. (Who are not members of Hamas) https://www.democracynow.org/2024/8/27/hrw_report
I thought the point was to be better than Hamas? Of course they mistreat detainees, but that doesn’t mean Israel gets a blank check to do the same. Also, many of the Palestinians currently being held by Israel without charges in indefinite detention are innocent civilians, including many from the West Bank. Israel has been illegally detaining and mistreating thousands upon thousands of Palestinians without any kind of due process or concern for human rights for decades. Pointing a finger at Hamas and saying “Look! They’re doing it too!! October 7th!!1!!” is not a valid argument for how Israel has been treating captive Palestinians for years.