Abu Hanifa and Muhammad do not treat a mouthful of phlegm from the interior as invalidating, while Abu Yusuf treats a mouthful as invalidating.
The dispute concerns phlegm rising from the internal cavity; mucus descending from the head is distinguished from it.