As far as IDPA goes, you can use 9mm XD in the "ESP" class. Some do not like this because ESP also allows a 9mm 1911 style pistol. For reasons that may not be important, some feel they are at an disadvantage using a XD in ESP.
Another option, get the XD in a .45 ACP. That gun can be used...