A combination of both would be ideal! Many universities, although ranking extremely highly, do not particularly stand out or excel in every academic field, and one may doubt the quality of education there. However, the relative weakness of that department is usually made up for by the unparalleled amount of resources and networks such universities can offer, along with the instant brand recognition that comes along with it. As an example, the computer science and engineering school at Vanderbilt does not rank as well as compared to other US News Top 20 colleges, but the name and prestige of Vanderbilt usually offsets the disadvantage.
On the other hand, many universities like UIUC are known especially for their strength in a particular department (in this case, computer science) - these can also be a great option if you are absolutely sure about the industry you want to go into, as they are well-recognized by experts in your potential field.