IMO it is better to upgrade to the latest v2.6.x first, v2.6.12 currently, make sure everything works, then upgrade to v2.7.3.
v2.7.x introduces a lot of changes, noticeably the deprecation of Pod Security Policy on k8s 1.25 cluster. it is highly recommended to read the release notes before attempting the upgrade.