Some (uncovered) stocks were sold using a specific lot as a cost basis. It was determined much later that, because of a broker system glitch, the cost basis used for the sale was invalid (the lot had already been sold). Does the IRS mandate what I need to do, or can I choose whatever other lot?
The question boils down to: in case it is determined that an invalid lot was chosen as a cost basis for a stock sale, am I free to choose any other lot as a cost basis, or does the IRS mandate which lot I need to choose?