Text this: Discriminative versus generative approaches to simulation-based inference