Cost is also a valid factor. You're not going to get an affordable PC with comparable specs that run 4k games. At some point your PC might break even, but in the here and the now, a console makes sense. I'd only recommend a PC if you needed a decent graphics card for some other reason, like video editing.
Another factor is you're far less likely to encounter modders. First thing I do is disable PC crossplay, if the game lets me.