Can two homes be traded for one?

Tax rules make deal tricky