I think both have different purposes and use cases. I have a feeling Ethereum will be around for longer...
You are right, they have different tasks and areas of application, and all the competition comes down to who will be higher in capitalization size, and here everything is not clear, XRP can gradually overtake and no longer let ETH