If you are a smart enough student that you would gain admission to one of the highly-ranked flagship universities of another state, you are going to win scholarships to private schools too. The lower the rankings you are willing to go, the better scholarships you can get.
You can relocate to get in-state benefits but it may take awhile as states put conditions (e.g. living there for a year first, having a a job, etc) specifically to prevent people doing this.
From https://www.newsobserver.com/news/local/education/article239..., $800 million from North Carolina tax payers to universities it sounds like.
Meanwhile, Germany is re-introducing fees for non EU residents: https://www.studying-in-germany.org/germany-will-reintroduce....
€1500 per semester. Nothing compared to zzz USA or even UK fees.
Also, a lot of state systems have good schools: UC Berkeley, UMass Amherst, UIUC, UT Austin, and UW Madison come to mind.