Why you should cherish your frenemies, according to science