You actually answered your own question there, before the comma. Where did the ball go directly to? Answer: To the glove. Therefore, foul tip if eventually caught. The rule does not say "caught cleanly", or even "caught immediately". It says "and then caught legally".
Contrast this with a ball that goes directly to catcher's equipment and then is eventually caught ---- not a foul tip.
My momma told me to go directly to the store, without going over to Sneaky Pete's. So I went directly to the store. And then took the long way home.