If you install a distro that has a GUI you almost definitely have a desktop manager app. This is the app where you enter your credentials to login. Basically all of them have a way to select which desktop or window manager to launch after login.
So install 2 desktops. Logout. Switch the dropdown. Login. New desktop or window manager. No reboot or command line needed.