This isn’t in the case of something “unwanted”. You can decline to assume a debt from inheritance. You would also be giving up anything tied to it like a house or car. In the case of a dead loved one’s higher education, there’s no reason to assume the debt. You don’t get the education if you do.