In a significant development, the Supreme Court on Wednesday thwarted an attempt to get a direction to the Centre to frame uniform religion and gender-neutral laws governing subjects such as marriage, divorce, inheritance and alimony by refusing to entertain a batch of petitions, saying it cannot direct Parliament to legislate.