OP - What is the exact routing and what is the fare basis for your ticket? Using "X" and "Y" is confusing and only means that you will get theoretical answers to your hypothetical question. With concrete information, people here can tell you exactly what different options might cost.
Perhaps some of the options, such as allowing several segments to be cancelled, may not be so bad.