Neither was a perfect game.
1. Harvey Haddix, Pittsburgh, May 26, 1959: Against the Milwaukee Braves in Milwaukee, Haddix pitched 12 perfect innings. His team, while recording 12 hits, couldn't score against Braves pitcher Lew Burdette: in the 3rd inning the Pirates failed to score despite 3 hits, due to a mistake on the basepaths; in the 7th, a hard-hit ball was caught on the warning track, having been knocked down by shifting winds; any other inning it probably would have been a homer. In the top of the 13th the Pirates were out 1-2-3; in the bottom of the 13th the perfect game fell apart (including an intentional walk to then-relatively unknown Hank Aaron) and Haddix and the Pirates lost.
2. Armando Galarraga, Detroit, June 2, 2010: the "28-out" "perfect game":
https://en.wikipedia.org/wiki/Armando_Galarraga#%22The_28-out_perfect_game%22Any others?