the mobs including zombies, creepers and slime are still spawning when the mode is peaceful, but they will be removed after 1 game tick. The game is trying to spawn them automatically, using spawn eggs has this problem too. Maybe we can stop trying to spawn them.
Don’t duplicate your own reports, edit them.
Also, duplicate of MC-73881.