"An allusion to the military practice of capturing/holding a hill (high ground), no matter the cost or (lack of) benefit [...] Usually used in the negative, as in "I strongly disagree with their decision, but it's not a hill I'm willing to die on" [...]"
https://en.wiktionary.org/wiki/hill_to_die_on