Let's also keep in mind that brain size is not a proxy for cognitive ability. Ravens appear to be broadly as smart as chimpanzees despite their brains being 1/20th the size. Likewise neanderthals had larger brains than homo sapiens, which didn't stop them from being outcompeted.