JD's missed games are a concern, no question.
But I'm surprised you would want to go for Machado over JD.
Last year JD hit 303/376/690
Machado hit 259/310/471
Huge differences.
Machado is obviously the better all-around player, but it you really want to give the offense a boost, JD is the guy.