Competition between Invading Pathogens and Resident Microbiota