Depends on the use case, they are very good but I don't think you'll ever get feature parity with a proper enterprise product like you mention.Re Unifi gateway products, with the recent updates pretty decent now or still lacking against pfsense/untangle/sophos xg?
I used to use OPNsense and Untangle, they are both extremely powerful, however I prefer the simplicity of UniFi and it does what I need it to do (Dual WAN, policy based routing, S2S VPN, Wireguard VPN server etc).