That depends on your experience and need. Firstly, you must not consider a barebone Mini PC if you do not have experience in building your PCs. It can be an overwhelming experience; you will wish that you hadn’t made this mistake.
Secondly, if no available Mini PC meets the specifications you desire, you must consider a barebone Mini PC. A barebone PC will give you the flexibility of choice to configure your rig. But please keep in mind that the small form factor of the device means that you need to do some measurements and planning before buying the new PC components.