Measure your desk first: at a normal viewing distance of 60 to 80 cm, a 27-inch screen fills your view without moving your head.
At 27 inches, 2560 × 1440 gives sharp text and leaves room for two windows side by side. 4K pays off for photo work, small text and large screens of 32 inches and up.
For games, refresh rate matters more than resolution: 144 Hz feels much smoother than 60 Hz, and competitive players go for 240 Hz. Check that your graphics card can keep up.
An adjustable stand or a monitor arm is worth it for long days: the top of the screen should sit at eye level.