I'd have answered the question "Switching window manager [...] ?" different:
A WM (window manager) is something different than a desktop environment!
It's like shoes and feet ....
Just try to switch the WM (window managers) back and forth.
Right, it is not about installing the whole environment and stuff.
The WM can stand alone mostly.
No, it does not immediately kill your GUI - this is just about login and WM and
I use it with
Lunbuntu, XFCE4, Wayland, Gnome, Unity, Ubuntu-X, Ubuntu-Wayland, ....
So do not hesitate to run the config command just to try a different one.
It is fun and it does not break anything (my personal experience).
I use it with Ubuntu 22.04 in the moment and it is still fun!
What I really like are these:
sudo dpkg-reconfigure sddm (lovely! unknown WM login...)
sudo dpkg-reconfigure lightdm (really light; avoids f***-up due to "energy saver" problems!)
sudo dpkg-reconfigure gdm3 (well known, convenient!! until it crashes your machine due to the "energy saver" bulls***; typical Gnome, looks good until you find out all the problems and shortcomings and design issues and pitfalls and unresolved issues and and and ...) ignorance is bliss!
sudo dpkg-reconfigure slim
(you need to type your name and pwd - it is so slim it does not even offer drop down - very interesting experience, nice!)
If one is not available just install it. Mostly there will be hints.
sudo apt-get install sddm
would be one solution in the arena under a debian circus tent.
Do not miss this:
in the top left corner sddm and slim show the different available GUI flavours like Gnome, Unity, Ubuntu, w/o Wayland, XFCE etc.
Choose before swaying at the display manager. No, it does not show you a screwed up desktop after successful user login. Actually it shows the same options like gdm3 (Gnome) in a different way of display. So you retain the choice of desktop surface when you chose your display manager.
Cool, isn't it?
And then?
Well, you can just switch them again and again! There is no issue in just using a different one if you do not like the current one any longer.
FF!