I have had the S6 Edge, S7, S7+, Note 7 and Note 8 so I am familiar with Samsung sensors. I think the S9 sensor is largely the same and I would rate the P20P better than those.
However, keep in mind I never ever use the front camera (other than for face unlock) or shoot video, so I cannot tell...