Catalyst-controlled divergent transformations of N-sulfonyl-1,2,3-triazoles into isoquinolin-3-ones and 2-aminoindanones.