I need assistance

I need advice. I'm looking to get into Nier. My question is, should I buy Replicant and play it first or buy Automata and play it first? Or do I just buy them both and which order do I play them in? I don't wanna be spoiled for both y'know. I thought since there's a sale on ps store rn I thought may aswell try to get into the series. Any help would be appreciated thanks!!