Pathfinder (1st edition) was basically a cleaned up/ refined version of DND 3.5 Current versions of each system differ quite a bit more
DND 5e is much more user friendly and approachable system. Easier to learn and jump right in.
Pathfinder 2e is more complex, bit tougher to learn, but comes with a lot more options and flexibility.
Both give you similar experiences of playing DND, but the mechanics are different
+1 for Enderal. I liked it enough that I bought the writers standalone book. My friend and I played it at the same time. We both got the Enderal hangover and couldn’t start a story based game for weeks