Machine-Learning-Assisted Comparison of Regression Functions