Do you think a Tesla Model 3 or a Toyota Camry would go for more miles?
Most any car can go 1M miles if you keep repairing it. Whether to do so is a question of cost. Too many people give up on cars early because of false logic, figuring why spend $$ when the car is only worth $$$ now? That is comparing an upgraded car to a worn one. I prefer driving a car that I know what has been restored than starting on another mystery used car. But, crash damage or severe frame corrosion can make repair impractical. As rough comparison, at 400K miles, the Camry engine probably needs new rings, bearings, and valve job, i.e. "rebuilt long block" at maybe $3K after installation. That includes accessories like alternator & water pump which you should update too. You may be at a 2nd transmission rebuild by then ($3K for both). All this might be cost-prohibitive at a dealer, but resourceful people can save tremendously by finding a good repairmen, using junkyard parts, or doing the work yourself (which has its own rewards and no risk of being duped). Some cars have extremely expensive parts, which can make repair prohibitive even at fairly low mileage. BMW is notorious, as are all high-end sports cars (Porsche, Lambo, ...).
Tesla currently falls in the later group. Indeed, all mechanical repairs must be done at their service centers, which have very high labor rates. They refuse to sell parts to owners or independent garages, supposedly "for your convenience" to insure quality. The only exception is a few body shops they certify. Add to that owners often wait many months to have even fairly simple repairs completed, due to lack of parts and a back-log of cars to repair, and if there is no nearby service center that could prove a major hassle (your time & money). The elephant in the room is the cost to replace the battery pack in the future. Range decreases over time, and much faster if you drive the car hard or supercharge regularly. For moderate driving and charging, estimates are that you may still have acceptable range (~20% loss) after 400K miles. You might be looking at >$20K to replace the battery pack, depending on model. But, battery costs will likely fall over time and there may be new options. As example, Toyota Prius battery replacement turned out much less expensive than originally envisioned. It would be much easier to upgrade the technology in a battery pack (match voltage and current needs) than install a newer gas engine in an older car (though hot rodders do so). If practical, you might expect 3rd parties to offer that. A few people have begun repairing Tesla's themselves and affordably. Rich Benoit is an electrical engineer who has become famous on youtube.
Presume you mean the Model 3, unless you know of a future Tesla Model that isn't public yet (Elon, is that you?)
I've done this math with an Accord, I think we can assume a Camry is similar.
It comes out to most small and mid sedans having a range on a full tank of between 400–450 miles.
A Long Range Model 3 will do about 300.
At highway speed, this is a difference of 4.6 hours of driving, vs 6.9 hours of driving. In reality most people stop after 5 hours anyway. Unless they are big fans of full bladders and numb assess.
Keep in mind that Accord and Camry are pretty fuel efficient cars with decent sized tanks. Many cars have poor fuel efficiency, like sports cars, muscle cars, or large trucks. Many of those vehicles actually have less than 300 miles range on a tank. 300–400 is the practical range target for EVs. What is needed beyond that is faster charging for long trips. The time difference on shorter road trips is almost unnoticeable, but it will add up a bit on a really long trips like cross country drives.
Both cars are made to go for 200k or 300k miles, quite possibly more, if that is what you are asking. The question is, how much you will need to pay for maintenance. With Tesla, the battery will still be able to do some 85%, one or two sets of brake pads and that's all. In the Camry you would probably need quite some service work during that time.
If you are asking about daily trips, the Camry could have a slight advantage if you have a bladder out of steel. If you are used to doing some stops and drive the Tesla wisely (some 20-minutes toilet/coffee/snack/charging stop every 2–2,5 hours of driving), the difference at the destination comes down to almost irrelevant.
There is no such thing as a Tesla Model 2. So, I would go with the Camry...
If you mean on a single tank/charge, then the Camry. 450 miles compared to 300 miles.
If you mean over the life of the car, the the Model 3 will last 2 to 3 times as long.