If you can bear the risk of 3-6 months without income on the property, then buy vacant if you believe that it can be readily leased. If it can't be readily leased, consider whether you should purchase it at all?
Be prepared for the tenant to give notice the day they get notified of the exchange of contracts. Have plenty of spare $ to cover the vacancy period (unless there is something special about the property).