There will be a form of UBI, because of the need for it, eventually. It will probably never be a 'fair' system (there probly will still be 1000xUBI people) but it will be necessary to prevent a lot of problems.
Think of it this way. The percentage of the population that will not have enough skills, 'smartness' and or knowledge to serve the community in a profitable way, increases over time. Today the group includes mostly the very young, the elderly (which in a way already have a 'kind of UBI', but not the complete lifespan) and people with a severe illness. Tomorrow new groups of people will be included, like people who stopped going to school at 17,18yo or so, and so on.
Suppose society provides those people with only the very minimal money to survive and no entertainment, traveling, proper housing, life choices etc. In that case not only those people, but the society as a whole will suffer because of unrest, riots etc. At a certain point in time, UBI can easily paid for by the wealth that automation will bring. Today probably as well, but the pressure of unevenly spread wealth is still able to keep it from happening, rich people still need enough poor people to work for them directly (house/boat personnel) or indirectly (mine coffee, chocolate, soy, battery minerals, ...)
Why are you so sure UBI is the most efficient solution to those problems? Another solution is for the wealthy to let the poor live miserable lives and to use technology to oppress them. A protest can be put down with drones, robots, and chatbots.
I'd suggest we already have a some UBI, but in the form of education, health care, disaster relief, food stamps, and so on.