"Do the best universities have best teaching technique, or are they best because they pick brightest students and they contribute nothing special?"
They tend to attract the best teachers. And by "teachers" I do mean the best researchers in the given field. Which in turn attracts the brightest students.