I would argue that IRC hasn't managed to evolve with the needs and wants of modernity and that's why the likes of Discord and Matrix have become so big.
IRCv3 the "next gen" version of IRC is woefully inadequate compared to Matrix. The IRC working group is only worried about the IRC client protocol and the effort seems to have largely stalled. That's like defining the protocol for Lemmy servers and clients without the Lemmy server to server communication.
XMPP is a potentially more compelling option/a good option. I don't know enough about the low level details to really debate whether XMPP is "better or worse."
I don't think either of these protocols being older qualifies them for superiority on the merits of "standing the test of time."
It has improved a bit since then (2019), but mainly because of the detoriating funding situation forcing Element to push the Matrix foundation to try and survive on their own.