Better Program or Better School overall?

FWIW, I majored in chemical engineering at a top 20 school not known for engineering. In fact, I regularly see posts here saying not to go there for engineering, engineering there isn’t good etc. I can tell you that it never hurt me. I got a good paying job right of college, as did all my friends. IMO if you go to a school that is known for being a good school and having smart kids, and the program is accredited, it doesn’t matter if it’s a top ranked program.