Your post makes 100% sense and I fully agree with you
and this make total and absolute sense and for sure the better option ,a resistor (highest possible value consistent with delivering enough current in normal use) should be enough protection.)
Using an optoisolator (especially to drive a local relay which itself provides isolation) is definitely "belt and braces".
Kind Regards