When you have a well known objective and a lot of code to produce solitude can be a boon.

But yeh, when you the objective is a bit fuzzy and needs to be clarified with others then you need to be there. Same when you need feedback on what you've done so far.