The correct answer is that the The compound AB has higher boiling point that the compound XY
The polar compounds have higher boiling point than the non polar compounds. This is because they are held together by the strong hydrogen bond which is more stronger than the other forces.
The compound XY has lower boiling and melting point because they are held together by weak van der Waals forces.