If the zoning is there- you can't do much to stop it. You can delay a project (see Walmart at Transit/William), but most of these projects can be built as of right. So either you buy the property and keep as open-space, change the zoning to something other than commercial (good luck building houses or apartments along that strecth) or an overlay district that restricts store size. Try convincing Lancaster or Cheektowaga that commercial development is a bad thing. If there's any road that is ideal for it- its Transit.