Those foul smelling, small, white-ish, chunks that you can sometimes feel at the back of your throat are called Tonsilloliths or Tonsil Stones.
tonsil stones are stinky little globs of mucus, dead cells, debris and bacteria that form in the tonsil crypts which are simply small pockets or divots that appear in everyone’s tonsils. When the trapped dead cells, mucus, and debris harden or calcify, they form white/yellow ball in the tonsil pockets.
The strong unpleasant odor is caused by a build-up of sulfur-producing bacteria that feeds on the tonsil stones collected in the crypts of the tonsils and is a combination of hydrogen sulfide, methyl mercaptan, and other stinky substances that form in it.
tonsils play a role in the immune system and are meant to function like nets, trapping incoming bacteria and virus particles that are passing through your throat.
I get these when I’m sick.