I don't think this is a competition, but to clarify: XMPP has long been used in the public sector (via suppliers such as Isode) since before Matrix was conceived, and continues to be still. I've spoken with multiple organizations for whom the Matrix data model was not a good fit. As you say, they are quite different and each has strengths and weaknesses.