That's what I would assume, but it still seems like loans should be paid back first (which may trigger selling assets which would trigger capital gains tax), then estate tax should be levied on anything left, then step-up in basis. If if works this way, there's no loophole.