XLR and TRS are two different things.
XLR is a "balanced" audio cable, which means that it sends the signal in such a way that the noise picked up while traveling over the cable can be canceled out by comparing two different signals on the cable.
TRS, on the other hand, is used for a slightly wider array of things. It can be used for unbalanced stereo ...
Assuming that the same type of cable is used with either configuration, there will be no sound quality difference.
The plug type makes no difference to the fact that there are essentially three electrical connections that need to be made.