How the U.S. tax code rewards financial literacy — and costs everyone else