SF Giants decision to move on from struggling infielder highlights questionable trade deadline strategy