I am certain SunCat. I even have some vilagers that have entered the basement of my home. I have never hit a single one of them. The closest one at the time was on the other side of the water in the farm about 7 blocks away.
Odd. Now the golems don't mind. I'm not sure if this is a bug that only occurs on occasion, or if it was some odd glitch. Whatever it was, I will keep an eye on the golems and update this post if the golems go rouge again.
-Fireguy2464
Thanks for asking, and no. I went back multiple times to confirm, and each time, I only hit the garden. Then, the golems would run up to me and murder my avatar.
Can still confirm in 1.18 Pre-release 7. Zombies (and other mobs) are unable to navigate around or over the blocks. they jump if one is in the way as if they think it is a block they can walk through.