Let me analyze the stealth mechanics in both Knights of the Old Republic games:
You make several valid points about stealth's limited utility. However, there are a few situations where it can be useful:
KotOR 1:
Avoiding some random encounters in hostile areas
Planting the explosive on the rancor without fighting (though you're right that timing is tricky)
Setting up ambushes with mines
Bypassing some optional fights to save resources
KotOR 2:
The Onderon mission you mentioned, though as you noted it's not foolproof
Sneaking past turrets in certain areas
Positioning for surprise attacks with sniper shots
Getting through some sections of Nar Shaddaa without combat
That said, I agree with your overall assessment. Stealth is extremely situational and the skill points could almost always be better spent elsewhere. The game systems don't really reward stealth gameplay since:
Most important encounters are unavoidable
Combat is generally easy enough that avoiding fights isn't necessary
Other skills like Persuade, Repair, or Treat Injury provide more consistent benefits
Force powers can accomplish similar goals more effectively
Your F- rating might be a bit harsh - I'd give it maybe a D since it has some niche uses - but you're correct that it's one of the weakest skills in both games. The points are almost always better invested elsewhere unless you're specifically doing a stealth-focused playthrough for roleplaying purposes. For more details like this you can check the black toon. The most demanding place for the people who like the content like this.