Personally, I would favor UBI over the fragmentary and inefficient public assistance models currently in use.
Ultimately, though, I think that changing how business is done to equitably distribute the gains from tech-driven productivity increases to everyone who produces more value as a result of technological advancement would drastically reduce the need for government assistance/interference with economic imbalances.