A beehive or an ant colony is actually one organism, from the point of view of evolution. The individual insects are genetically identical within a collective.
I've read it, a long time ago. IIRC, there is competition among the very few breeders, but the non-breeding workers are in fact identical. The social cohesion parent was talking about happens among the workers.