Hi,
Thank you so much for your interest in our products and for using our community.
The PORT module provides features like configure interrupts, digital filters and also allow to configures pins with pull-up/down and drive strength, etc.
Meanwhile GPIO module allows you to define pin directions, read states, set, clear, toggle, etc.
You can read more about their features in Chapters 12 and 13 from reference manual.
Hope it helps you.
Have a nice day!