Both are very stable if you keep the OS clean. I've used both (and Vista too)
XP is a very old OS. It was released in October 2001 so it is nearly 10 years old. The time will come soon when Microsoft will stop supporting XP. There are all sorts of rumours when this will be.
Personally I would go with Windows 7, it's the newest and the best IMHO
