There's no Nirvana track titled "Mary Mary." You're likely thinking of "Polly," from Nevermind (1991), whose chorus repeats "Polly, Polly"—a line that's often misheard or misremembered.
"Polly" is a haunting acoustic song based on a real-life kidnapping case, sung from the perpetrator's perspective. Its minimal arrangement and chilling lyrics make it one of the band's most unsettling tracks.