Mobs such as Husks/Zombies and Iron Golems don't come closer to the fence to attack the player even if they were able to hit them if they did, as can be seen in the videos.
It also affects Vindicators for example, but it's inconsistent as seen in video 3
Related issues
Attachments
Comments

[media][media][media]
This issue seems to be due to MC-21109