The best guitar for a beginner totally depends on what kind of music you want to play.
If you want to play Rock, then your best bet is to buy a decent electric guitar - not too cheap, not too expensive. However, if want to play and sing songs for yourself and your friends - then an acoustic guitar would be a perfect match.
So what you need totally depends on what your goals are. One thing I would suggest: don't fall for the urban legend that says you should start with classical or acoustic before you go to Electric guitar. You can directly play the style of guitar that you want and buy the appropriate guitar for this style. To help you more, here are a couple of videos I have created for my “Ask the Guitar Coach” video podcast that will tell you which specific guitar you should buy and why - if you are just starting out. Best of luck in your new musical journey!
“I am a beginner guitar player, which Inexpensive guitar should i buy?” https://www.youtube.com/watch?
“I am a beginner, what Electric guitar should I buy”? https://www.youtube.com/watch?