Varies wildly from phone to phone. I prefer the in screen detectors, since they work great when your phone is on your desk or in a phone dock/charger. They need to be implemented well though.
The one on my Huawei P30 was fantastic. The one on my Pixel 6 was ass, the one on my Pixel 8 is good.
The one on the 6 was ass even without a screen protector, the one on the 8 is good even with one.