Do the rules really encourage that style of play? Or, perhaps, is that just a style of play many people enjoy?
I have frequently seen Pathfinder criticised for its many "trap options" that were supposedly underpowered. If Paizo were all about pushing the perfect build on the bleeding edge of optimisation, why would they publish so many "traps"?
Personally, I prefer flavour over optimisation. And Pathfinder allows me a far greater palette of flavours than 5e.
Which brings me to one of my primary concerns with the new edition, the flavour or aesthetic. A lot of the new art has left me cold. Gimmicky "comical" goblins pushed more to the fore. A lot of Paizo's original flavour also didn't appeal me, but it seems the new game is veering further in directions I do not appreciate aesthetically. I shall approach with caution.
I think some players enjoy that style of play. My friends who are my players definitely fall into that category as do I. Lots of options, rules, strategies, and a stronger emphasis on pseudo-reality appeals to some of us.
I think 5E is a good game. I don't actively dislike it like I did 4E. I think 5E was fun for a while. I think you can have fun playing it. I see why it appeals to a wide audience. Seeing my buddies' kids enjoying 5E creating a new generation of gamers is great. His kids love it. He has an easy time running them through it. I see tons of girls getting into 5E, way more than when I was young. I think 5E made the game far more accessible while still being fun to a much wider audience. I think that was the design goal and a very successful goal. The big dog D&D doing well is good for the market as a whole in my opinion.
My gaming group's preference for a more complex system that is still well supported is a matter of personal preference. I hope PF2 is fun, while cleaning up some the problems with PF1 like playability at higher level and damage scaling.