This USED to be a feature in Strava for the web. You could just easily flip any lap into a segment.
Alas, it was removed a few years ago.
Not only has Strava not really gotten better in 10 7-8 years, but they have removed features. And I love Strava.