If a domestic corporation chooses to have the benefits of subpart A of part III of subchapter N (relating to foreign tax credit) for any taxable year, an amount equal to the taxes deemed to be paid by such corporation under section
902 (a) (relating to credit for corporate stockholder in foreign corporation) or under section
960 (a)(1) (relating to taxes paid by foreign corporation) for such taxable year shall be treated for purposes of this title (other than section
245) as a dividend received by such domestic corporation from the foreign corporation.