Just to preface... my work before the pandemic already had a remote work culture so transitioning into the pandemic was trivial.
Living in NYC as an engineering tech lead, my productivity before pandemic and during pandemic is close to the same, if not a little worse. Worse meaning I no longer really go outside until weekends, and now my commute times are basically work times. I work on devices, so I don't have space in my small studio with my partner to store things. My work environment since March of the pandemic is a folding table and a sofa. Thankfully, I have a gym in my building. Instead of answering Slack on the train to work, I am already active on the laptop. Now, some might construe that as being productive, but effectively it means I'm working for more hours at a lower hourly rate. I also prefer to work in the office, so I can separate my work environment from my home environment. In lieu of "stopped in the hall", I have to contend with in-home distractions from my partner because they require attention.
I do enjoy what I do, but I am pointing out that many people can feel "healthier" working in the office.