Actually, from a computer ergonomic standpoint, its probably too deep. I am working on a 24" deep desk, and the screen is too far away from where my eye doctor says it should be. But that's a story for another day.
Raise the monitor up (put a bridge under it), and you may get by with 24" at your desk.
You need a new eye doctor as that is completely backwards
"for most people" if that was implied as a general rule. It causes far less eye strain to sit further away from a larger monitor, have a longer focal point which your eyes are used to and used for most other activities, even if the effective viewing angle ends up the same.
Granted if the budget or desk width/free-space requirement limits the monitor size, you don't want pixels so small you can't see things, more a matter of certain uses than OS elements that scale with vector elements.
Get as deep a desk as will fit the area then as large a monitor as needed to get an optimal field of vision which is the range your eyeballs feel comfortable moving rather than having to turn your head at all. On a ~30" desk with the monitor at the back, that's at least 32", smaller being tolerable at 1080p but larger at 4K would be an upgrade *if space allows*.