Ive done research at university institute that was tip top in field, mid size companies, and one of the largest most famous companies on the planet. My experience is mid size company > huge company > university.
University had way way more counterproductive office politics and turf wars that all impacted ability to do research.
Just my experience