Well it depends. If it was just me I'd buy a raspberry pi. If it was a single or small number of machines for work I might buy a Mac mini, just because I know for certain that it will work and know exactly how much labor will go into it. The labor and risk easily can outweigh the lower price of acquisition.
If I'd needed something new for refreshing a couple of web pages, I'd have bought a Raspberry Pi or similar. Would anyone really buy a Mac Mini, new, to do this?