It's a feature, not a flaw.
If running in defrost, the designers have decided the AC is needed. Fogged windows are due to humid air, AC removes the humidity.
On older models, a lot of owners cuss their slow, inefficient defrosters, when all they need to do is turn on their AC compressors...