my favourite thing about 5K is that you can do 2x scaling and still have plenty of space on your screen to display multiple windows (effectively 2560x1440)
but with a 4K screen, you have three options: 1. no scaling and tiny fonts (ugh), 2. fractional scaling (ugh), or 3. 2x scaling and settle for 1080p real estate (ugh)
IMO 5K > 1440p > 4K > 1080p