I think assuming that people will associate remote-only with layoff-eagerness is probably too pessimistic of a take.
Even if that were the case, I'd still prefer to work for a remote-only job with a marginally higher chance of layoffs, than to work for an in-person job. The trade off still seems worth it to me.