This is a dangerous frame for this argument. "Get to" implies a "right," or that the action is condoned somehow. It's not. Not everything bad in the world needs to be prevented by government action. We could stop all traffic deaths today by banning cars. We could stop all forms of obesity by making everyone drink Soylent. Personal liberty prevails because, in the end, the knock-on effects of removing liberty are a case of the cure being worse than the disease, in most cases.
Automatic enforcement.... That sounds like letting the algorithms put people in jail.
However this is in no way is a convincing argument for government to take over control of what people stuff in their mouths.
Things can pretty much always be made safer by eliminating personal freedom. The safest human protected by the best 5-laws-safe robot overlords probably doesn’t get outside all that much.