Duke vs UIUC Econ grad

Master’s in Economics. Which one is a better choice if I plan to go into academia/teaching (PhD)