Speaking NFHS, it is a fielder's choice, and the batter is not credited with the hit. 9-3-2a & c.
Some of us want to learn the entire rules book, not just the parts pertaining to balls, strikes, and outs, and that includes the scoring and record keeping rules.