I'd want to be well compensated for taking on a job where I was fairly certain I was doomed to fail because the company is being eaten alive by its competitors.
What if you were the best qualified candidate?
Would it be unethical then?
That may well have been the case, but if those odds are 1% and 2% I wouldn't want my compensation to depend on me saving the probably-doomed company.