MythicSpoiler provides something they call "Thesaurus" (usually used for finding word synonyms).
Although not the site's primary functionality, you can search for specific cards and it will yield you similar cards in nature and functionality, and excluding any other factors, which has its own pitfalls - for example, it wouldn't give you just any other green card, but it might give you a non-green alternative with the same function. The range is limited to three cards at a time, though.
Searching for Fog, for example, you will get suggestions for Druid's Deliverance, Moment's Peace, and Moonmist.
It appears to be an exclusively manual process, in which you can choose to partake by submitting your own card suggestions.
There are attempts to solve this issue procedurally as well, such as this attempt to solve it via NLP (Natural Language Processing). They link to a GitHub repository, but unfortunately there seems to be no existing implementation to try it out yourself quickly.
That said, for the multitude of cards available as alternatives to Fog, you're better off doing a specific Gatherer search (or search the database tool of your choice in a similar manner), for example for all green spells with the phrase "Prevent all combat damage that would be dealt this turn". This is the only process I can think of that will guarantee that you're not missing the card you're looking for, as long as you choose your search parameters sensibly.