How can I software disable a display?
I finally found a solution: the open source project DisableMonitor 3.1 let's you easily disable, enable or change the resolution of all monitors attached to your Mac. It supports macOS 10.15 Catalina and Big Sur (Intel) 11.1.
DisableMonitor 3.1 is a fork of the original project DisableMonitor, which is no longer maintained.