I've said my view upthread, but I still think that commenting on what people are eating/ the smell comes across negatively and will make the guest feel awkward.
We don't know exactly what was said bit it clearly wasn't just a what did you have for dinner or your dinner smells nice question/ comment. Probably more a what's that bad garlic smell? Your dinner smells bad or something like that.
I come back to my original point, what was to be gained by asking, as it clearly wasn't just done in a neutral way. If they said we ordered a roasted bulb of garlic

the answer isn't going to suddenly change the smell. Just open a window, or light a candle if it's that bad.