A polar substance has an unequal sharing of electrons while non-polar ones share equally of electrons. In this case, AB is strongly polar while XY is nonpolar. AB then has a higher boiling point because polar molecules have strong intermolecular forces between them.