"Persistent" Mobs Still Despawn on Peaceful Switch, Take Loot With Them
Even though their "no despawning" boolean is set true upon picking up item drops (e.g. dead player's inventory), a zombie, zombie pigman, skeleton, or wither skeleton will still despawn if the game is set to peaceful.
The problem is less the despawn itself and more the fact they take their loot with them.