Is occupational licensing beneficial to society? In a relatively few cases... perhaps . But in the vast majority of cases massive detriment lurks. Here are a few examples, including in the medical industry, which, currently under licensing regulation, doesn't seem to be benefiting.
Politics is seldom simple. But the truth usually is.