People in the USA forget that we have TWO tax systems.
One is the regular tax system that everyone knows and loves to hate.
The other is the closest thing we have to a "flat tax" and it's called AMT. It has different rules and different rates.
When you do taxes, you compute your tax liability using BOTH systems and you pay the HIGHER amount. That's how it works.
I pay AMT and it sucks.
The IRS even reduces your taxes if you lose money in the stock market, if your business property depreciates, and so forth. I like to refer to those cases as "the government paying you to be a loser." Just another case where doing better means you do worse.
Let's not even try to pretend this is a fair or well-designed system. Even Warren Buffet, surely one of the greatest beneficiaries of the system, has spoken out against it.
Your welfare example has nothing to do with taxes. Welfare benefits are set by gross income level with some COL and other local adjustments. Your tax status is irrelevant.