Every substance has dispersion forces. Only lopsided molecules add a dipole pull, and only an H on N, O or F can make a hydrogen bond. Pick two substances, set a temperature, and see which one is still holding itself together.
Dashed lines mark an attraction that is winning. The jiggle grows with temperature, because warmer molecules carry more energy.
Substance A
Substance B
Temperature: 25 °C
Ranking rule. Compare molecules of similar size first. Hydrogen bonding beats a plain dipole pull, which beats dispersion alone. When one molecule is far bigger, its dispersion forces can win anyway.