Ranieri is one of the best crisis solving managers, but not a great title winning manager. Milan should look to hire him. He will guarantee a Europa league spot at the very least.
I never did think that Ranieri did a bad job at Juve. Luigi Delneri, Alberto Zaccheroni and Ciro Ferrara were terrible on the other hand. Ranieri did a "decent/good job" and had some memroable victories against Real Madrid. However Ranieri would not have been able to take Juve to the heights that we went on to reach, so inevitably, he would have went. But to say he's a terrible manager is harsh, he's always been a "good manager" not great and not terrible.