When you feel sick, you are not at the top of your game and you will not be as alert as you should be; you tend to focus on how bad you feel. Your reflexes will be slower and your judgement may not be the clearest. It really would be better off with you not trying to ride.
If you are sick, it can be like you are drunk and that is not a good way to ride. Also, many over the counter cold medicines contain alcohol in them and most make you sleepy.
Keep in mind… for those that wear a full-face helmet, coughing or sneezing in a helmet is not any fun, and can be messy.
https://www.adlerlawgroupllc.com/blog/2020/01/riding-a-motorcycle-while-sick/