KOTOR1 was much better. The storyline was Epic, the twist was great, and the game lasted a good 40 hours or so.
KOTOR2 had a muddled storyline, no real sense of adventure or direction, and lasted just 21 hours for me, by far the shortest RPG I've ever played. Makes me feel ripped off.