I do think it's undervalued how a bit of social pressure can really help you be more productive. I mean I'm sitting at home typing a comment on HN, because there's no colleagues or employers that can peek at what I'm doing. My work productivity has really taken a dive thanks to WFH.
I totally agree, and I've observed how my productivity has gone up dramatically now that I'm back to the office. It's fairly empty, so it's not like there is actually many people watching over my shoulder, but somehow while I'm at my desk there I feel very little desire to do anything other than work.
Sure. I'm much more comfortable at home and in the long run get more done because I'm likely to actually stay at a company for a longer period of time... But there is nothing like being in an office and feelings like you have to be locked in for productivity.