Israel has arrested Palestinians either for participating in terrorist attacks, assisting in terrorist attacks, or actually carrying out terrorist attacks.
Hamas kidnapped innocent Israelis and others.
Your attempt to compare the two is disingenuous, odious and simply dishonest.