The IDF is a foreign occupation army, not the police.

At least in the US, the police come from much the same communities as they patrol, and there's some sort of democratic accountability. Don't like the police? You can vote for local government candidates who will implement reforms.

In the West Bank, Palestinians are subject to arbitrary violence at the hands of foreign soldiers. The IDF is not there to protect Palestinians. It's there to protect the Israeli settlers who are taking Palestinian land. If Palestinians don't like how the IDF behaves, tough luck. Palestinians can't vote in Israeli elections, so they have zero say in the government that exercises ultimate authority over their lives.

This is a fundamentally different situation from policing in the US.