Diversity as defense