Group coordination in humans and LLMs