I have the P9p and have more issues with the (ultra sonic) sensor than I did with the (optical sensor) on the previous P8p.
I even compared both in hand before trading in the older phone and the P8p scanning was much better.
Though I have to mention; to improve the optical sensor reading I had to do 4 fingerprints with different brightness for each scan, and that what helped a lot.
Too bad I can't do the same with the Ultrasonic sensor since it doesn't care about the brightness on the screen.
Pixel 9 pro struggles with my finger scan if it's too dry. I guess washing hands removes the body naturally produced oil and that makes it harder to scan.