Optimal choice of closest approach distance for a comet flyby: Application to the Comet Interceptor mission | Synapse