I would recommend you getting used to having several Xcode versions installed in parallel by downloading and installing the manually instead of using the Mac App Store solution. You will often find yourself in a situation where you might want to use some Xcode version over the other for various reasons. Many developers are doing this for years and it is fortunately straight-forward:
Login to developer.apple.com
Navigate to Account -> Downloads -> More
Download the Xcode version(s) you need (maybe even some ancient ones).
After download completed click on the .xip file to uncompress it.
Rename the app bundle(s) so you can distinguish them by version (e.g. "Xcode.app" -> "Xcode12.2rc.app").
Move the renamed Xcode app bundle(s) To Applications.
That way you can launch whatever Xcode version you need at any time.
In some rare cases you might want to run an older Xcode version with an iOS device running a bleeding edge iOS version officially not supported by the older Xcode version. In this case you can often just copy the respective directories from Xcodewhatever.app/Contents/Developer/Platforms/iPhoneOS/DeviceSupport/ over to your older Xcode version's app bundle.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: