Jakarta will choose a new governor on Wednesday in a fevered election marked by religious tensions.