The myth sounds mostly based on all the other issues the office brings with it. In a vacuum, would people communicate more in face given they had enough similarities, the work at hand would greatly benefit from it and there were no negatives? Well, I think so.
But that's not what reality is. Many people work in a lousy, suboptimal open office. They don't get to handpick their teammates. They might have to spend a lot of time commuting at times not matching their natural rhythm, which inadvertently has an effect on their mood.
And that's really all there is to it. If there's truth to how many people just "glue code together" in their developer jobs, then the immediate follow-up is "do you really need to discuss that much to glue code together, when requirements are already far out of your reach?" For many, the work literally becomes a case of "the more you bother me, the less work I'll get done", which coupled with the above and pressure to perform, is a recipe for disaster.
Given something closer to the ideal with more collaborative requirements, then yes, in-office would be better no doubt. With the caveat of the disadvantages one would still have.