First don’t be too hard on yourself, you are only 2 weeks into your guitar journey and learning the guitar is hard. It can be frustrating but just realize that when you are frustrated you are often learning. It took me 9 months to get a consistent clean C chord. Patience is your friend. My motto is I suck at guitar, I will suck for a long time, it’s ok to suck.
Now for some concrete things you can do to improve your chords. Slowly place your fingers on the chords, then pick out each string and if it buzzes or is muted do micro adjustments with your fingers until it rings clear. Do this with each string and when you have them all sounding good do one strum and hear what it should sound like. Then remove your hand and repeat. Do this for 3-5 mins for each chord every day. Some you will notice improvement in a week or two, some chords it may be months. Don’t get frustrated just do the routine.
Also play around with your thumb position on the back of the neck. Every one is different based upon our anatomy. I have to put my thumb in the middle of the neck or sometimes lower to get the finger spread needed for some chords. Experiment and see what causes the best sounding chords for you.
Hope this helps and enjoy the learning journey.