macOS is optimized for PPIs at the sweet spot in which Asus's 5K 27" (PA27JCV) and 6K 32" (PA32QCV) monitors sit. Asus seemed to be one of the few manufacturers that understand a 27" monitor should be 5K (217ppi), not 4K (163ppi). 4K will show you pixels at most common distances. But if you follow that same 217ppi up to 8K, that leads to 40.5" not 32".
My wife has a triple vertical PA27JCV setup and it's amazing. I've been able to borrow it for short stints, and it's nearly everything I've ever wanted from a productivity monitor setup.
I'm still happy with it, would kill for an 8K 43" 120hz monitor but that's still a ways away.
Another great option is 22" nominal (a 21.5" 4K display has 204ppi), also running at @2x. This is better if you keep the monitor closer to the keyboard side of your desk, or if your desk is not very deep. These are hard to find, and even when you do they're likely to be a portable monitor. Asus has a page for a PQ22UC but I can't tell if it is no longer available, or no longer sold in the US.
My only complaint is that the KVM leaves a bit to be desired. One input can be Thunderbolt, but the other has to be HDMI/DisplayPort. That means I need to use a USB-C cable for real KVM when switching between my two laptops. I'd like two cables, but four cables isn't the end of the world.
OSX does great at scaling UIs for high resolutions
https://griffindavidson.com/blog/mac-displays.html has a good rundown.