What doomsayers or tech bros never really understand, you can’t be rich without an economy. Which basically means that if 90% of the people loose their jobs, their home, the system by itself will collapse even the stuff that the rich people are needing.
AI will basically either enrich our life like the loom did or it will outright kill the current economic system of the world which might stop poverty at all or it will sort of start a big collapse where people suffer at the beginning but than it will still have a positive outcome at the end.
Humankind always found a solution in the past and it will even do that in the future.