I been running a virtualized pfsense on a PC using Proxmox. It's been serving me well for the last 2-3 years.
The benefits of running it on proxmox gives me the option to virtualize a few more servers on the same hardware.
And as a few people have pointed out in the comments, it's not the hardware that's providing the security per say, it's the software you are running.
A PC running OpenWRT vs a modem running OpenWRT are more or less the same.