Homonyms are words that have the same pronunciation or spelling but different meanings. For example, "bat" can refer to a flying mammal or a piece of sports equipment. Homophones are a type of homonym that have the same pronunciation but different meanings, like "there," "their," and "they're." These linguistic phenomena can lead to confusion in language comprehension and production.