Gaming PC vs. PS4, which one to choose?

Gaming PCs cost a lot more than PS4s but it is said that PCs run games in better graphics and settings than in PS4. Is that the truth? Should I spend a lot of money and buy a gaming PC or but a PS4 for $399? Which hardware are most of you using for gaming?
