This is dangerous advice. BSD networking stack may have been superior at some point but that hasn’t been the case for many years now.
You are very likely to run into issues trying to do filtering and/or routing at anything >1Gbps on commodity hardware (ie. e1000 nics).
Pf is pretty but it’s not worth trading stability for.