Diversity Can Help Firms, But Context Matters