-
Unless you tell Strava to recalculate the elevation it normally uses what it got from the device. Even the same GPSes on the same ride can be way out from each other as they slowly get better/worse lock (positional accuracy is favoured over elevation accuracy).
Even when you tell Strava to recalculate it'll be based on an imperfect set of DEM (Digital-Elevation-Model) data.
Just ride the bike and ignore that kind of stuff.
Went cycling in Switzerland over the weekend. Strava said I climbed 7,460 feet on Sunday, while someone else on the same ride recorded 5,730.