Perfect rhymes and near rhymes
A perfect rhyme matches from the last stressed vowel to the end of the word: NIGHT and LIGHT, NATION and STATION. A near rhyme (also called a slant rhyme) shares only the final sound, like ORANGE and HINGE. Songwriters use near rhymes all the time, especially for words with few perfect rhymes.
Rhymes come from the Carnegie Mellon University Pronouncing Dictionary, so they’re based on how words sound, not how they’re spelled. That’s why the finder knows that THROUGH rhymes with BLUE, and that COUGH doesn’t rhyme with DOUGH.