Nexus 4 or Sony Xperia SP

Hi,

I am planning to buy a mid range smartphone. I am from India & over here both the Nexus 4 and the Sony Xperia SP are equally priced. Could you please help me out by telling me which phone to opt for?