BMR is what your body burns doing nothing at all: breathing, pumping blood, keeping you warm. It is roughly 60 to 70% of the day for most people, and it is the number the three formulas on this page estimate.
TDEE is BMR times your activity multiplier, and it is the number you eat to. Everything you do on top of lying still is in that multiplier: your steps, your job, your training, even digesting the food. That is why picking the activity level honestly matters more than picking the formula. Two steps up the activity list moves a 1,700 kcal BMR by about 600 kcal a day, which is far more than the gap between Mifflin-St Jeor and Harris-Benedict.
The full explainer on TDEE and BMR goes through where each part of the day fits.