Which distinction between أَعْلَمُ and عَالِمٌ is correct?

Ism al-Tafḍīl: Meaning, Eight Forms, Patterns and Use