I did end up using a zener to solve my problem, but I don't understand why the resistor in series didn't work by itself
I haven't seen any shematics, but here's what I think:
If using a simple voltage divider, the divider circuit has an output impedance similar to both resistors in parallell, and any input to a led/optocouplers (hereafter I just call it led) input has very low impedance compared to the output impedance from the voltage divider.
Therefore, it's difficult to get the resistance values to match so that led/optocoupler turns on when voltage provided is 10 volts.
Since the diodes you ended up with probably has a very low forward impedance (if I can call it that), it's much easier to make the voltage match turn-on voltage for the led/optocoupler you're using.
However t's no problem using a voltage divider, but then you must use some voltage folower to get enough current into the led. I recomend you to use a regular npn bjt as common colector, with a resistor between emitter to led, or from colector to Vcc to prevent blowing the led.
Alternative you could use an opamp as comparator, and even make an positive feedback so that led could be either on or off. If supplied voltage is expected to vary, I think this would be the best option.