Dessert in San Francisco

We’re planning a trip to SF and one night it looks like we will be trying Kokkari restaurant. Their dessert selection does not look that great, so does anyone have any recommendations for a place to grab dessert after dinner? We’ll probably be staying in Union Square, so somewhere in the Financial District, Union Square or North Beach would be preferred. Where’s the best gelato in North Beach?