Gerrit Cole retired the final 17 hitters he faced, and the surging Pittsburgh Pirates clinched a spot in the playoffs with a 3-2 win over the free-falling Atlanta Braves on Tuesday night.