The best defense is to keep your distance. Obviously, if you cannot, it is good to know grappling techniques and locks, but if your self defense fighting style relies on them, you are opening yourself up to be too close to your attacker. As Scotty said, both are useful, but boxing would probably be better overall because you learn to control distance, evade strikes, and the goal is to hit and not be hit, rather than to engage hand to hand, like in wrestling.
Boxing
Even though i box,I think wrestling is greater for self defense. Sometimes you wont hit someone hard enough to stop them, but if you can slam someone on the floor, they're pretty much done, and it looks like you won the fight.
Boxing. Basic self-defense techniques are holding your hands up, ducking, slipping, parrying and blocking a punch, all of which are taught and learned in boxing.
Both are useful.