Personally, I like opens spaces for small teams, so closed offices big enough for maybe 6-8 people, tops
Further discussions are moved to the conference room which is dedicated to us programmers, with a TV we can cast to, etc.
Off topic discusssions or lengthy ones are expected to take place in the conference or break room.
We have ms teams (bleh) for trivial questions.