UBI would be a more efficient way to cover housing and food (I’m not saying 1K a month is enough to do that).
UBI is also portable where universal housing would not be.
Edit: But I think 6’s point has more to do with we have a population of homeless people and people who can’t afford to eat. We have the money and the means to eliminate poverty. That should be done before healthcare and would actually reduce the cost of healthcare overall. Poverty is expensive.