Short answer: most likely digital optical.
Long answer:
It depends on how your receiver works and on the quality of the DACs (the chip that convert from digital to analog and vice versa) in both units.
If your receiver has a direct analog path for analog inputs then you should use digital...