Obsidian also improved on another BioWare game in Neverwinter Nights 2.
I'd still put KotOR 1 over KotOR 2, though, but Obsidian gets a lot of unfair flack for that. Maybe if LucasArts hadn't rushed them so much and let them actually finish the game, it wouldn't have the unfair reputation it has.