Carl Sagan never claimed Phobos was hollow or artificial. You’re thinking of a colleague of his, Joseph Shklovskii, who wrote ‘intelligent life in the universe’ which Sagan edited to the point of becoming co-author. Sagan himself was an extreme UFO skeptic.
Sagan is listed as coauthor, and would put his name on anything as long as he gained some publicity.