Looking at https://searchfox.org/firefox-main/source/browser/components... it is a bit weird, that there isn't a general check for browser.ml.enabled true/false.
Also note that it's browser.ml.enable (no "d") vs. browser.ml.chat.enabled, to make matters even more infuriating.