Does the Holy Spirit choose the next pope? No.
Cardinal Ratzinger, later Pope Benedict said, “I would not say so, in the sense that the Holy Spirit picks out the Pope … The Spirit does not exactly take control of the affair, but rather, like a good educator … leaves us much space, much freedom, without entirely abandoning us.”
And, “There are too many contrary instances of popes the Holy Spirit obviously would not have picked!”