One cliche is "fighting a losing battle".