In terms of producing quality titles it's undoubtedly Sony I don't even think it's worth comparing MS's & Sony's 1st/2nd party offerings with each other . I think that Sony's offerings even surpass that of Nintendo's .
The sigifnicant sales difference between many high selling Sony/Nintendo titles makes my opinion apear flawed ; sales were never the biggest measure of quality however.