Only student can make the course better or worse for herself / himself.
It is practically irrelevant where student is taking the class. It is somewhat important who is lecturing though. In many lower ranked colleges, profs are teaching and not TA’s. My D. compared her UG experience at in-state public with her friend’s UG experience at private UG, not considered to be elite, but regarded to be a good place for pre-meds (both were pre-meds). At D’s in-state public no lectures are given by TA’s, only profs and one class had 3 profs being there at every lecture each teaching his own sub-specialty of this class. D’s friend at private UG had many lectures taught by TA’s. So, you make your own conclusion. Both my D. and her friend graduated Summa Cum Laude and graduated from Med. Schools later. I believe that their education was very comparable, both made sure that they did the best in every single class. Just as simple as that!
One can chase the Harvard name and their is nothing wrong with that. But do not say that the top kid will not get a great education at in-state public, as my D. commented: “I will do fine anywhere” and she did absolutely fine along with many other top caliber students around her, most of who are MDs now.