Best to have someone who plays shop with you. Some guitars are complete crap, and indeed in the same model, especially with cheaper lines, quality can vary immensely. Decide on a budget, you can get a decent sounding, nicely playable instrument in all price ranges. And get it set up by a good guitar tech / luthier. A poor setup will make it a challenge to play.
Some great value for money guitars are
Acoustic- Art and lutherie. The 3/4 size one (called the "ami") can be had new for less than 300. Used probably 2. Grew sounding, playing guitar, and it is made in Canada. Great, portable guitar, perfect to "campfire" playing.
Electric- epiphone "special 2". This is a bare bones guitar, that is a little rough around the edges, but <300 new, and I bought one for 140 used. The factory setup is abysmal, and some of the electronics will crap out after a couple years- bu usually its just a case of getting connections re-soldered. When buying one of these, definitely get a guitar friend to help, because the quality varies widely.
These are only a few examples It is possible to get a playable guitar to make good music at a low price, or get junk. But if you want to push your pricepoint a little higher, say up into the 5-700 range, you could score an amazing used instrument. Look for stuff made in Japan in the 80s, the quality of many of these axes rivals north American.