I switched to an ultrawide, and though it's about the same amount of screen space I tend to organize it differently, keeping mostly on-task stuff visible. It's real nice to have 3 tabs of related code and an iOS simulator running as well as a console without having to tab switch.
And then the thought that comes up, of course, is, don't copy or verify data that way. Automate it.
I used to use three huge monitors at work, but since working at home during Covid I've found that I not only like typing on my HP laptop's built-in keyboard better than on my full-sized mechanical keyboard, but I mostly prefer just using the laptop's display to using multiple displays, and for exactly the reason you gave -- I'm better off automating things and serializing work from the command line. I've made aliases for opening the web sites I need from the command line and usually just kill them when I'm done with them, instead of using tabs. It really does have a kind of head-clearing effect.
Sometimes I do use a second monitor to put anything I might need to reference. But most of the time, it's blank.
I really don’t do well with a second monitor, because humans suck at multitasking. Invariably slack or email end up on the second monitor, not real work.
Better advice IMO: don’t task switch, stay in the shell as much as possible. Serialize your work to the limitations of human attention