If you need a PC, as in a desktop or a generic server, by all means buy a PC.
If you need a ton of fast and sophisticated GPIO, small size, light weight. passive cooling, battery-powered operation, a PC starts looking a bit problematic. That's where an RPi fits in.