The number of "defeated enemies" in the base represents the number of enemy units, generals, and defensive units you have defeated since building your base.
The number of "enemy losses" you find within medals, specifically the Gallantry Medal, represents the number of enemy units you have defeated since the medals are added to the game. Therefore, it doesn't matter if there are differences between the number of "defeated enemies" and the number of "enemy losses".