I think both are great. It depends on what you need and the requirements you want to hit. I use an RPi for as a Pi-Hole for example. It works great. Low power and just that one task. Performs nicely. And cheap. However for my firewall (PfSense) I use a mini PC because I want the throughput especially when I VPN into it. Also works great for that task. So I think of it in terms of 'task' and it's footprint (ie storage/mem) and throughput.
replies(2):