In the purchase of all goods, materials, supplies, equipment, parts, or any other property of any nature, used by the county in any of its governmental affairs, all possible efforts shall be made to ensure that local vendors have ample opportunity to bid on such purchases. Nothing contained in this section, however, shall prohibit the board of commissioners or boards or commissions established under the board of commissioners from purchasing from nonresident vendors if it is in the best interest of the county, or from taking advantage of any cooperative purchasing plans available through any state governmental agency or governmental association. The board of commissioners shall in all instances exercise its most prudent judgment for the best interest of the county as a whole.