Best constant of the critical Hardy-Leray inequality for curl-free fields in two dimensions