Which is the better phone between the Nexus 4 and the Moto G Google Play Edition?

Which phone would you pick if you had to choose between the two?