Spanish has a ton of these. Sometimes the rules of the language are changed to avoid them. For instance, you’d expect “the water” to use the feminine version of “the” as “agua” ends in “a” (la agua), but because it causes connected speech and makes the stressed syllable difficult to hear, the masculine version is used instead (el agua) to avoid that awkwardness.