No beheaded babies or rapes took place (this was misinformation).
As Tsun Tzu said:
"All warfare is based on deception."
"Now in order to kill the enemy, our men must be
roused to anger; that there may be advantage from defeating the enemy, they must have their rewards."
"Hence to fight and conquer in all your battles is not supreme excellence; supreme excellence consists in breaking the enemy’s resistance without fighting."
Innocents were still killed no doubt but details are exacerbated in war (throw back to GCSE History propaganda examples of babies on German bayonets) in order to further dehumanise the enemy or delegitimise their real grievencs, all to further isolate them.
Israel has been doing this for years with its propaganda machine to make sure crimes and terror against Israelis and Jews is overreported, and crimes and terror against Palestinians is underreported, e.g. killing journalists, Mossad harassing pro-Palestinian activists abroad, using lobby groups and weaponising party funding and connections to attack the reputation of anyone who criticises Israel by conflating anti-zionism with antisemitism, positioning itself as a free country (though it is itself an antisemitic apartheid state), bombing the only media broadcasting building in Ghaza as it was "being used by Hamas" (without proof), etc.
Shaping public perception stripping the Palestinian cause of legimacy or sympathy is a key tool in the arsenal of Israel.