Taxi drivers in NYC have an informal network of places where they can use a proper bathroom. They're actually easy to spot if you know where to look. So there would be no reason to do what you claim. Also any taxi driver knows the TLC could revoke their hack license for a meter violation like what you mentioned so none of them are going to jeopardize their livelihood with such foolishness. Again this is very hard to believe and would indeed be very freak occurrences if they happened.
Yes you will have the occasional dirty car or bad driver but getting scammed is not something you ever really need to worry about with yellow cabs in NYC. Even if you're a tourist. Yellow cab drivers are some of the hardest working salt of the earth folks and you're making them out to be something they're not.
I'm Queens born, grew up in NJ and spent a lot of time in the city growing up and now I've lived here for the last decade or so and those experiences were enough to put me off of yellow cabs entirely.
You're right in that they're probably freak occurrences but I don't owe them benefit of the doubt as a consumer when I have what is in my opinion the superior solution of rideshares.
It's possible things have gotten worse, I haven't lived there in 6 years, and that was basically pre-uber there. But yeah, can't reconcile my (likely thousands of) rides with that.
edit: BTW, with the broken meter (the one time I recall this happening), I just told the guy I knew how much it cost every day - 7 bucks including tip - and that that's what I'd pay. He agreed, he took me where I was going, and I paid. Easy. I know some people will get out of the cab, I kinda remember that once when I was really young and my mother was like 'nah' and we got in another cab.
I won't use anything but rideshare apps because they seem to have higher standards for the cars and the drivers.