Unless you need the features on the Pi's 40-pin GPIO connector or very low power consumption a mini PC is a much better bet for general compute.
replies(6):
The GPIO header and community remain a solid reason to still opt for the Pi, but the age of "raspberry pi as a cheap home server" is pretty much over, thanks to Intel and AMD slowly watching up to ARM.