There's loopholes. If you are married, your best bet is to convert all your cash into an irrevocable single premium immediate annuity in your spouse's name. Your spouse's income doesn't get taken by Medicaid to pay for your expenses, it's not a gift since you're purchasing something of equal value, and it's not an asset because you can't cash it out immediately.
Basically, the strategy turns $100k into something like $6k/yr for the rest of your spouse's life (depending on age and gender), and makes you eligible for Medicaid. That said, you probably want to buy a slot in a nursing home that accepts Medicaid first, then "run out of money" and apply for Medicaid once you're in the nursing home. It's illegal to kick you out if they accept Medicaid and you're transitioning from private payment to Medicaid.
That said, nursing homes are hellholes, and I'd rather die with relatively minimal palliative care, in my own home, with friends and family visiting. That doesn't require BS like this. There's some circumstances where the Medicaid route may be better, so it's nice to know of this option.