Answer: A
Y has Cl on C2 and OH on C3, so rotate Y by 180∘ in the plane to read it from the other end: C2 (old C3) has left OH, right H, and C3 (old C2) has left Cl, right H. Compare with X: C2 is identical (left OH, right H), but C3 has Cl on the left in Y and on the right in X. Exactly one of the two centres is inverted, so X and Y are diastereomers.