Both dealer and tire shop are generally correct. I would not use that spare tire for a long distance, e.g., 200 miles or so. But to get you to a tire shop, I would use it.
As a point of clarification, at 50K miles, are the tires still those that came with the car? If they have been replaced, and if it was me, I would use a cloth tape measure to measure the circumference of the spare and one or two road tires. If they are very close, I would be less concerned. If they are the tires that came with the car, you did really well! Consider replacing with the same brand and model. If the spare's manufacturing date code is still OK, consider putting it on the ground and beginning a 5 tire rotation.
Bear in mind that while all tires have a given size, between brands, the actual dimensions of that given size will vary a little. That'll cause trouble with the car's driveline.
We have a 2025 Wilderness (SK) and put the spare into a five tire rotation plan. So when/if we need to use the spare, it'll be close in circumference. The downside is at replacement time, we buy 5 tires.