Scientists discover that reflection time deepens self-doubt for anxious people but reduces gender confidence gaps.