You can crop a ride in Strava.
Have done it before after leaving Strava on and driving home!
Open your ride in Strava and there’s a spanner symbol on the too left menu. Crop or delete ride is up there.
So it’s worth cutting a corner to gain half a second, as if you do it once you get away with it!
Even though the car behind is closer than the time gained!