This is a tough one. If it's going to be a track day-only toy, I'd definitely go with the Miata. Like others have said, consumables are much cheaper, and they are pretty damn near close to being set up perfect in stock form.
If you plan on driving it elsewhere than just the track, WRX all the way. They are bigger, boost is wonderful, they are forgiving, and upgrades are still relatively cheap.
And this "glass tranny" talk is absolute BS. I abused the hell out of my old 2002 WRX for years, and I NEVER had a single problem. Much of the time I had it, the car had about 60hp more than stock as well. The key is not to drive like an absolute idiot. In ANY awd car, you're gonna encounter something breaking if you dump the clutch at 6,000 rpm like the Turbo Honda guys do. The WRX's weakest link is the transmission gears. Also, early ones do have finicky trannies, but using the right fluids, upgrading the shifter/bushings/etc. and not driving like an idiot will ensure that it will withstand years of hard abuse.
All that said, if you go with the WRX, splurge and get the 2006-07. They have the better 4pot/2pot brakes, the 2.5L motor, a better gearset in the tranny, and 06's even have aluminum front control arms. Look for the cheaper TR (tuner ready or track ready) model, they are lighter too. You're gonna want that stuff, trust me.