Intermolecular forces between dipoles (like HCl) are stronger than they are between nonpolar compounds. However, intermolecular forces are, at best, between two partially charged atoms (that is, they have charges with values < 1). Ionic compounds (like NaCl) are between atoms with a charge of at least 1, so their forces of attraction will be stronger than any intermolecular force.