Optical connections are typically of lower quality than all the others. They are offered as a “just in case” option. They require a conversion to light…. Then back. Conversion is never a good thing.
First choice would be AES, XLR… or SP/DIF. The safest bet is that the balanced connections will sound best… but technically you have to check.. The difference is unlikely to be so large as to need to loose sleep on. I have tried both in my system and couldn’t tell the difference… my manufacturer recommended balance… so I went with that.