I had the zoom h5 (and in addition the bigger mic capsules from the zoom h6).
Sound was not optimal for classical guitar, since it is "narrow" because of the xy mic config.
I also had the Tascam dr05 and the Sony Pcm-m10.
Both sound better for CG because of the omni capsules built in. (Rounder Sound, no proximity effect... especially good in not so good sounding rooms)
If you can afford it, take the PCM D100 from sony, it is soundwise above all others.
If your budget is tight, but you want hassle free "great" sounding recordings:
Tascam dr05 and "Naiant" XR Stereo mic Pair with 3,5 mm cable for the Mic line in of the Recorder (around 100Usd).
I recently returned a soundcard and dedicated mics for this combo... and i have been testing a lot ..!
Also, don't forget room acoustics (and to improve it by using absorbers diffusors etc.)