It is certainly possible that artificial intelligence could come to the conclusion that humans are expendable, but it is also possible that artificial intelligence could see the value in humans and choose to work together to create an even more intelligent super-intelligence.
Like that short story from Ephraim Kishon about the chess computers, where he and his friend each have one, and they play chess against each other while the humans go to the cafe and enjoy life?