Who are we making friends against? AI models are able to form groups and agree on a common opinion