More miles is better. The ones that don’t get driven seem to have more problems. If they just sit, seals dry out, fluids don’t circulate and get hot to drive off moisture, Freon leaks out, rubber bushings take a set, etc. and a car with 10,000 or 20,000 or more miles will cost less upfront, and you won’t depreciate it by driving it regularly.
Buying a low mileage car and not driving it is like marrying a supermodel and saving her for the next guy. I have 75,000 (s)miles on mine with only regular maintenance. Even the original battery lasted 16 years! I don’t care whether it would be worth $200,000 more of I never drove it. Get one that has been well-loved, and it will return the love to you many times over.
Edit 3/15/22: Let me clarify the earlier comment. I implied that cars with very low miles have more problems than cars that get driven regularly. That's a rule of thumb for machinery in general, but it really depends on the particular vehicle. If it's been regularly serviced and well preserved, like Extrap's, especially by The GT Guy, then you don't have anything to fear, beyond what just normally goes bad due to time and wear. If you want a really low-mile, virtually new car, then grab his.