I'm in the middle of this dilemma though my mother isn't end-of-life, I think she may live many years but she's almost immobile and has dementia.
We're very close to pushing the button finding a nursing home. Her house is too big, the carers need a lot of management (both emotional and practical), there is always a problem with the boiler/roof/tree. We've been treading water but we've reached a point where it's dangerous for her without complicated adaptations. And these adapations, as someone says above, essentially turn the house into a care hom - like she needs to move to a bed downstairs, build a wet room, put ramps everywhere.
I oscillate. I know that I'd rather live in her very beautiful house with gorgeous garden in the middle of a desirable city than a care home. But I'm not immobile with dementia. In her case, there's the additional factor that moving her while she's still cognitively able to adjust makes sense. I feel that not to move her is delaying the inevitable.
I find a lot of the language around care homes is unhelpful. I can hear her (far healthier) friends saying 'oh the children put her in a care home'. When I'm trying to do what's best and also working hard to find out what she wants. The trouble is with dementia is that she in too much in the moment so will say she wants to be in a care home near me when with me, but tells others that she wants to remain in the city two hours away.