Zoning laws generally cover broad categories.
We have an 'adult toys' store in our town that is roundly hated by many citizens and the town government. But they comply with the district zoning law.
(Neighboring businesses have erected (pun intended ) tall fences so patrons won't see the offending store.
What cities can do is use bureaucracies to greatly s-l-o-w the process for a business's license application, construction approval, etc., etc.
They can implement restrictions on certain kinds of business.
"No alcoholic beverage sales within ____ feet of a church or school."
(Aside: I'm not sure if these ordinances would stand up to the constitutional test if someone wanted to challenge them.)
Many time this makes the establishment of a business cost and time prohibitive.