Out of the two? NES wins.

Both lost to Sony the next two generations, Sega then died and was absorbed by Nintendo. Nintendo lost in terms of software sales the next generation, and is posed to lose entirely this generation.