Read more about it here: https://bjango.com/articles/macexternaldisplays/
I'm on Linux and I just use fractional font scaling (1.5 usually) and everything works fine and it has no performance impact I can discern across AMD RX at work, intel hd or rtx2080.
Meanwhile on macOS basically any app scales properly - I think I have never seen one that doesn't. You can use fractional scaling on a mac, but in that case your whole output will be rendered in 5K and scaled down to the target resolution, which is of course an intensive task - I wouldn't recommend it and instead always use true 2x scaling.
I used to have a 27" at 4K, and indeed you can fit 3 columns then, but the blurry/jagged fonts annoyed me. 4K really isn't enough for 27".
My conclusion was that I need exactly 5K at 27" (and not larger, because then you have to turn your head to see everything) for coding.
I agree with you about size though running two 27" (on VESA mount arms) is the max I'd want for comfort as it was I had to get a 80cm deep desk to sit slight further back.
https://i.redd.it/tctxa7hs16l21.png
That desk is 120x80 and the monitors still over shadow it.
I have 2x27" 4K LG's and they comfortably fit.
The effective DPI may be higher on 5K at 27" than 4K at 27" but at a reasonable distance I fail to see any difference (approx 220ppi vs 170ppi at 3 feet).