In some countries there are Bitcoin machines where you can exchanghe Cash and Bitcoin. Would you use this machine or rather buy your Bitcoins in the Internet?

We don't have any similar atm here in our country so don't know how it will be to buy bitcoin directly through those machines. If there will be any such machines/atm nearby me, I will definitely give it a try but I have heard that most of them have over 5% in fees which sound quite ridiculous compared to what most of the bitcoin trading platforms have.