In New York, judges have a lot of discretion in deciding what is in the best interest of a child during a divorce case. They consider various factors, including the child's well-being, mental and physical health, and the ability of each parent to provide stability. The unique circumstances and facts of each case are also taken into account. Ultimately, the judge may consider any factor that is relevant to the child's best interests when making a custody decision.