Undead mobs do not attack turtle eggs. They pathfind over the eggs but otherwise ignore them. This has been observed in survival in my zombified piglin farm in the nether but it doesn't work in survival or creative in the overworld or nether.
Steps to reproduce:
Place down a turtle egg.
Spawn in undead mobs that are meant to attack them.
Observe result
Expected result:
Undead mobs attack turtle eggs
Actual result:
Undead mobs completely ignore turtle eggs
Do you have the Mob Griefing game rule enabled?