Similar Items: Optimal LTLf Synthesis