Supergirl is not a playable character in LEGO Batman 2: DC Super Heroes (2012). She appears only as a non-playable character (NPC) during specific story missions and cutscenes, and as a collectible minikit character.
Development timeline. LEGO Batman 2 finalized its roster before Supergirl's prominence in New 52 comics and the 2015 TV series. The sequel (LEGO Batman 3) expanded the DC roster significantly—Supergirl included.
Modding (PC version) can enable her, but it's unofficial, unsupported, and breaks online features. For legitimate play: wait for LEGO Batman 3 or later.