Outsourcing efforts at companies usually start with part of the workforce / couple of projects outsourced to a major outsourcer. This gives them partial insider information on the competence / political scenario / compensation in the company. I wouldn't be surprised if TCS worked with company management to figure out who would be retained based on these 3 variables and let others go without their fair shot even if they were qualified.
While this sucks for a candidate, I don't think you can allege discrimination based on this.