Does a physics-based target help machine learning extrapolate? Gradient boosting for D-D and D-T fusion cross sections