Mitigation of excess gain on inherited property