I personally use coax in two meter lengths and find it the better performer for 1 to 2 meters but beyond that have always gone with toslink.My longest run was once 50ft

I
know optical can do long distance because my entire town is wired with the stuff for all telephone and cable TV transmission.As long as the transmittine nedium is pure and undistorted it is just light being pilsed down the line and then like any other digital signal re-assembled at the other end into a useable analog version of the "blips" and i also
know that all "wire" will have losses after a certain length.
both can use repeaters for extreme lengths but simple is good