In response to your question, I would favor your seeing the ENT, who could also assess both your upper and lower respiratory tracts, with physical examination, a chest X-ray, a
blood count and, especially if the
phlegm is discolored, examination of the phlegm being raised.
Good luck, I sincerely hope that you are already feeling better.