Tesla is not prohibiting ridesharing. They are requiring the vehicle be in their ridesharing pool if you use their autonomous driving software.
Again, you own the car, not the software. Don't like the license, don't buy the car. Others will.
and I should be able to use it as I see fit.
Edit: It's worth clarifying my opinion. I'm totally alright with software "manufacturers" leasing software to end-users (or, in the case of Tesla, leasing the software inside their rolling computers to drivers). What I take issue with is the notion that there is a "sale" when a license is involved. It's a lease, and I'd like to see the force of law involved in reflecting that fact in the marketplace. Maybe it's splitting hairs, but I think consumers need to be clearly told that they do not own virtually anything that they've purchased that contains a general-purpose computer, and that they should not expect the benefits of ownership (ability to modify, to continue using even when the "manufacturer" has decided to no longer "support" the product, ability to resell, etc) in such a transaction.
What's next?
A blender has some kind of timer software in it so you can't use it in commercial unless you are on blender network? A TV has software for programmable channel in it, so you can't use it in your bar unless the TV vendor allow it?
Software is their implementation detail, I buy the resulting whole product.