There is a lot of research going into making kidneys without the markers that cause rejection. They hope to make pig kidneys compatible with human transplantation this way.
https://scholar.google.com/scholar?hl=en&as_sdt=0,33&q=%22pi...
Like, my organs are kind of crummy, so idk if anyone would benefit from them as a transplant. I just want my body to be useful!
It sounds like something you would do through an advanced directive or your will, but I'm not an attorney.