Is a batter given a hit if he hits a ball to shortstop and shortstop can not throw out hitter but throws out runner at 3rd in a rundown from 2nd base instead of throwing to 1st?

It isn't a hit. It is a fielders choice.