Mandamus does not lie to compel a discretionary act rather than a ministerial one, pursuant to CPLR 7803[1].
Matter of Gomez v. New York City Dept. of Bldgs., NY Slip Op 01915 (1st Dep't March 31, 2026)
Here is the decision.