Medicaid is typically "need based." So, if you inherit a substanital sum of money, you most likely will be over the minimum income levels or asset levels to receive medicaid until the money is spent down. This is true with SSI benefits as well. If you have SSDI benefits due to a disability, your benefits should be safe, even if you inheret money.
As a general rule, having more than $2,000 in "countable resources" disqualifies an individual for Medicaid. If the inheritance is substantial, a knowledgeable Medicaid beneficiary would consult with an experienced public-benefits attorney or elder law attorney about a trust arrangement that would allow the beneficiary to have the benefit of the inheritance and Medicaid as well.
Best wishes for an outcome you can accept, and please remember to designate a best answer.
This answer is offered as a public service for general information only and may not be relied upon as legal advice.