Charming : Enchanting :: Inimical : Hostile
Here's why:
* Charming and Enchanting are synonyms, both meaning to have a pleasing or captivating effect.
* Inimical means hostile or unfriendly.
* Hostile is the synonym for inimical, just as enchanting is the synonym for charming.
Therefore, the analogy works because it demonstrates a relationship of synonyms.