Optical sensor circuits are more sophisticated than magnetic.
Real life advantages of using the optical method are......
Errrrrrrrrr, Ummmmmmm , thats the sound of me struggling to find a good advantage, sending / receiving pulses and counting them is sending / receiving pulses and counting...