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?

I would prefer to buy bitcoin on the internet, because if there is a machine that can be used to buy bitcoin, surely the transactions done in the machine will cost, because the cost of making the machine or maintenance of the machine has a high cost