Yes. Linux on desktop is by design modulable, you grab parts from plenty of different packages and put them together to make a distribution. Gnome and KDE are just packages, large ones with plenty of dependencies to be sure, but just packages. Here’s the gnome package on arch, do you see any driver?
Matrix is only a protocol. Take a look at its implementations.
But yeah, none of these are discord.