This.
It's like the pylon is a portal. It's physically located out of bounds, but if you can touch it, you're magically in bounds.
The call was right. The rule is stupid.
This could be easily solved by just moving the pylon into the endzone so the outside edge lines up with the out of bounds line. I have no idea why that's not where it is normally.