First of all I want to say congratulations on your decision to learn guitar. As I am sure you have already discovered, it is not an easy instrument to master - but once things begin to come together and you start learning to change from chord to chord and play songs, it is very rewarding. And since there is always room for improvement no matter how good you become, it's a lifelong journey of continuing improvement and sense of accomplishment.
Learning the guitar takes patience, desire, and determination. Learning to play your first chords is probably the most challenging part of learning guitar. You must train your brain to tell your fingers and hands and wrist how to contort into very un-natural shapes and positions that you have never had to do before.
This process is tedious and takes repetitive practice. It would be immensely valuable to have an experienced guitarist or teacher show you the correct hand and finger positions for each chord and perhaps tell you what you might be doing wrong.
There are probably some decent self study courses that show some hand/finger positions, but it's not always easy to translate what you see in a picture or video, to the perspective of your eyes looking at your hand from the opposite angle you are watching on the video.
If could find a way to take only enough lessons to learn the correct way to play most of the common chords, you will have a great start. Once you learn to play a particular chord properly, then you can move on to learning the other chords one at a time and then learn the transitions between chords and build from there. You don't need a personal teacher as much for practicing the transitions after you learn the proper fingering and positioning to play the chords. Learning to play smooth transitions is mostly just repetition and practice.
It is my strong belief that you will be more likely to stick with learning the guitar if you learn by learning to play songs you like. The ability to play a passable rendition of a song that you like will give you inspiration to learn more.
If you can learn just three chords that are in the same key, and then master the transition between them, you will be able to play thousands of songs.
For example, in Western music in the key of G major, the most commonly used chords will be G, C, D, Em and Am. Learning just the G, C and D chords will allow you to play thousands of songs in Western music (especially "Country Western music").
It's not easy to learn to play chords. It takes dedication and a great deal of practice. While you are in the beginning stages of learning guitar, keep your practice sessions short but practice several times per day. A good schedule might be 30 minutes in the morning, 30 minutes right after lunch, and 30 minutes in the evening - depending on your personal time constraints.
Shorter sessions will give your finger and hand muscles time to rest before they get too tired - and slowly get used to the stress of using your finger muscles to do things they have not previously been required to do. Shorter practice sessions will keep you from getting frustrated and burned out from too much practice. As you get more experience, you can increase the time you practice gradually.
You will find some other very valuable tips and tricks for beginning guitarist (including how to minimize the pain on tender fingers) by clicking here Tips and Tricks for making it easier to learn guitar
This link will also add to the foregoing and give you more advice on learning to play and transition between chords What to practice before learning to play chords
Just remember, the hardest part comes in the very beginning but if you stick with it and understand that it does take dedication and consistent tedious practice, you will soon start making advances very rapidly. If you can just stick with it until you can play a song you enjoy, you will be hooked for life. You can do it! Good luck.