It's possible, but I don't think it's likely to come down to binary terms of survival. Coexisting may be a natural conclusion for a higher intelligence similar to us with animals. If it did come down to survival though, I think AI would be more equipped of continuing on and potentially more capable of metaphysical pursuits as well, if you believe in that sort of thing.
I'm not a complete cynic where I am totally indifferent to our death, but I also can't find good reasons either to have unquestionable allegiance to anything like my country, race, or species.