Bayern coach Hansi Flick and Joshua Kimmich both say they must learn from Hoffenheim's late comeback in the German Cup.