When you are in a fight you have to take the best shot you have. When fighting a taller opponent you may feel like staying outside where it feels safe but playing “safe” can put you on the losing end of a war of attrition.
Taking that hit to close distance could end the fight but that is what you need to get inside where you can deliver your weapons. Staying outside leaves you in your opponent’s workspace (though if you can stay far enough away so he can’t hit you I’m curious as to why you aren’t running).
This is an excellent video that looks at this dynamic. While the presenter is speaking from a Wing Chun perspective, the concepts are universal.