Should You Specialize or Be a Generalist?