XMPP is generally nicer to host due to lower resource requirements and better server management in general. The mobile apps are also more snappy and need much less battery, plus notifications are more reliable.
Matrix has somewhat more public rooms of FOSS projects you can join, but typically these projects are also available on IRC, which you can join via the excellent Biboumi gateway for XMPP.