I work from office (40min train) and some days from home. Home working enables me to recharge quickly and stay healthy. Office is good for seamlessly collaborative work. If I had to choose just one mode I would go for "home". It's just saves huge amount of time and energy. Feels much healthier. You can still collaborate fairly well if you have internet.
Working from home is great when I have a clear view of priorities and the task at hand but I sorely missed the social interactions of an office when I didn't have the option for it.
As most things in life, it's a spectrum, there are some people that probably work much better away from the office, personally I still need sometimes the social aspect of work to be my most productive self.