Are you trying to label the two curves? Or do you want to label the data points? Either way, you might consider the Epilog (or EpilogFunction) option or the Overlay function.
Also, Since X and Y are not defined, I think you meant to to use PlotLegends → {“X”, “Y”}.
Without doing some kind of overlay, I think your best option is the PlotLegends option. Though, you need to pass PlotLegends something that can evaluate to a string. In the code you shared, you passed in undefined symbols.
I know PlotLegends is not quite PlotLabels. But it does convey the same information. Just not as elegantly.