Hereditary was far worse in my opinion. Midsommar had a slightly healthier "nature's revenge against arrogant citified humans is somewhat funny" vibe whereas Hereditary was straight up malevolent towards every possible instinct of decency and family.
Re: Looking at his previous films