TV has coaxial digital audio output and headphone out.
Soundbar has coaxial digital audio input and aux input.
You can use the digital connection or the headphone to aux connection.
Either will be fine.
Check the TV manual on how to turn on and configure the TV audio output.