IMHO this sounds more like your upper respiratory infection. I have had this happen with a bad cold, cough until I choke and gag especially if I am eating. My best advice is to take small bites and let the phlegm come up as you do not want to aspriate anything into your lungs as a piece of food.
Others may have more insight for you.
Take care of you
Kitt