Homonyms are words that sound the same and are spelled the same, but have different meanings (like "bear" the animal and "bear" to carry).
While "inference" has a similar sound to "inference" (the act of inferring something), the spelling is different.
There are words that sound similar to "inference" but are spelled differently, like:
* "inference" (the act of inferring something)
* "infernō" (a place of eternal punishment in some religions)
However, these are not considered homonyms because they are spelled differently.