Avoid popUpTo and navigateTo same route
Fix for #1463, #1465 and #1597
The issue arises when both popUpTo() and navigate() target the same route. This can lead to unexpected behavior in navigation within NIA.
If start destination and target destination are same, we can just set saveState and restoreState to false.
@dturner This PR is ready for review
Rebased to latest type-safe navigation
Also fixes https://github.com/android/nowinandroid/issues/1597
Thanks for this PR. Once you have addressed the comments and CI passes, I'd like to see this merged into main.
This is no longer needed after we migrate to type-safe navigation.