Fire extinguisher

ANY extinguisher removes (displaces) air / oxygen. I would not want to be "the experiment" for that until it's undergone LOTS of testing.
Foam does not, only in the space it occupies. Dry chemical interacts with the fire, but it is breathable and an irritant and partially toxic, but less so than the fire itself.