>>3513303I'd go for the A6000 out of the two since any spec improvements in the A6400 you won't understand or appreciate as a newcomer to photography. You could even go older, the Nex 6 is still a capable camera in the Alpha family. Supports all the same lenses. Even the Nex 5n is still perfectly fine image wise. Pic related was taken with the older Sony kit lens.
Get whatever body leaves you enough money to buy the best lens possible within your budget. Lenses >>>>>>>>>>>>> camera body in terms of overall image quality and importance.