See https://www.irs.gov/taxtopics/tc429
AND
https://www.thetaxadviser.com/issues/2010/feb/sec475mark-to-marketelection.html