Failing at parenting

I’m feeling like I’m not doing a great job with my toddler lately. He argues and hits me and pretty much ignores my directions most of the time. First thing in the morning feels like the worst. I keep using his behavior as a reflection of my parenting, and it very painful. It feels like a never ending thought loop.