These words convey unpleasant/distasteful/crude meanings.
I’m not sure why you think it’s the sound itself rather than the word/meaning.
“Fag” the British slang vs “fag” the American one.
—
I should also note — I fear the pedantry is warranted — that words have not only literal meanings but equally important connotation.
For example, racial slurs refer literally to the race, but also connotate a certain emotion/perspective.
> I’m not sure why you think it’s the sound itself rather than the word/meaning.
If you're objecting to the very presence of the word then you're objecting to the word itself rather than the meaning being conveyed. There's a huge difference between e.g. describing a slur versus directing it at an individual, and just counting the number of times the slur is written obliterates that distinction.