Which is better: elite program at a so-so school or elite school with a so-so program?

Wouldn’t a fair comparison be to Dartmouth engineering students then? Hard to find since they don’t admit by major, right? Just asking…