Probably an error - who registered the death?
It isn't unusual for the informant to be misinformed of details of a death, but mostly the person who registers a birth or who gets married will get it right, so I'd go with John and just make a note that there's an error in the death certificate.
And don't ascribe any significance to spelling variations, especially with Irish surnames, as these are often misheard by registrars.