Cough is different. So it depends on what kind of cough. With whooping cough, for example, it will not help. But with a common cold, it is very useful. Not only do they recommend drinking hot, but also a whole cocktail of vitamins that will help the body to get stronger faster.
Any hot drink due to vasodilation will help your throat, no matter whether it is tea with raspberries and honey, or coffee or mulled wine. It's just that the first option is considered more useful.