Pathogen avoidance and prey discrimination in ants