It's the latter. 2 people surrounded by cubicle walls is better than a giant room filled with desks and no partitions.
The worst I've seen so far was at Amazon. When some people wanted to get up from their desk, they had to ask their desk neighbor to stand up so they could pass through.