Yes, it’s easy to lose a battle form the most defensible position.
War is nature’s IQ test. It doesn’t matter what ground they held if they were less smart, had inferior technology, or had poor team playing skills.