Hostile Endermen don't teleport to the player, even in situations when there is no (other) clear way to them.
For example you can hide in a house or a cave, and even if there would be room for them, they don't teleport there to go after the player.
Or, when you hit them and they teleport away, they sometimes get stuck in a cave or other unreachable area, and never teleport back. This seems to consistently happen when fighting them in the Nether's Warped Forests.
How to reproduce:
- Provoke an Enderman
- Enter a house with a roof taller than 3 blocks high, and observe the Enderman
= Instead of the Enderman teleporting to the player, they instead just stare and wait outside next to the wall or door.
And when they can't get to the player, they soon forget about them and turn neutral again, far away from the player.