The first-party lens selection is not up to par with the Canon/Nikon offerings. If a third-party like Sigma makes the lens you're looking for, it will usually come in a Pentax-mount variant, but most of the Pentax lineup is focused on consumer-grade lenses rather than the high-end stuff. That's fine, but Nikon and Canon have entry-level/midrange lenses too, while the reverse isn't true of Pentax with the high-end stuff.
Pentax Prime Limited are amazing and so much cheaper then Cannon or any other brand.
Look here for lens: https://www.pentaxforums.com/lensreviews/
All Pentax cameras from 1975-on have used the Pentax K-Mount[0], which means that in (almost) all cases you can use most of the lenses made in the last 43 years. I would call that pretty good compatibility.
The lenses mount, but you need to go into a menu on the camera body each time you adjust the aperture to tell it how much the lens is going to stop down. I think it's perfectly fair to ding some usability points for that.
On the other hand, Pentax's just released 50mm might be the best 50 ever.
That's from a couple years ago, not sure how much has changed with Ricoh takeover.
He is a Nikon centered photographer, but has a (distant) computer background and a very critical eye on a lot of stuff happening.
My biggest gripe was focusing performance. The lenses and cameras can be horribly slow to focus. That's why I switched to Fuji which is much better.