It isn't .
Taking hostages is a war crime, undeniable .
Cannot be debated , Palestinians commited war crimes .
If the IDF though that the Palestinians in the ambulance were enemy attackers , then they had every right to engage with them, making it not a war crime . Considering that Hamas have previously used ambulances for transportation , the IDF would have a legitimate claim .
Palestinians are the only ones who have definitely committed war crimes