It really depends where you live and work. I used to work for a startup few years back that was 15minutes bike ride from my apartment. So MUCH better for my mental health. Now I am remote with a company on a different continent, it is good and I have a home office but sometimes I just get my laptop and go to a coffee shop for no reason. Might get a permanent desk at a coworksping space. Even with dedicated space at home going outside makes me happier
Now if I had your typical 1 hours each way driving commute.. no way I am going to the office