Not necessarily true, you can switch say Kwin for Mutter or something else for example. People have successfully done it in the past.
It’s just not at all straight forward, nor supported, nor recommend, likely very unstable especially under Wayland, amongst losing out on features that rely on integration between the DE & compositor.
It’s possible to do, but; why even bother? it’s not really worth it.