Neither. The best way to get bitcoins is to earn them.
But if you have to choose between buying and mining choose buying because mining isn't profitable anymore. At least not for an individual except you have some mining farm and cloud mining services are not trustworthy. Too much money, energy and efforts lost for a minimum result. Put your funds together and buy some bitcoins it's better idea. Of course if you don't have any other option to earn the coins.