Should all authors on a paper be comfortable explaining every aspect of the paper?
By most standards, authors of a scientific paper need to have made substantial intellectual contributions to the paper (e.g., coming up with the idea behind it, proving a required result, etc), made contributions to the write-up of the paper, and ultimately approve of the paper draft when it is submitted to a journal. As such, I think both you and your collaborator meet authorship criteria even though your grasp of topic Y is not as deep as your collaborator (and presumably your collaborator's grasp of topic X is not as deep as yours). At the very least, it is not dishonest to proceed as an author.
As for whether an author should be able to explain every aspect of a paper, I would think not necessarily. My field is very interdisciplinary, and it is not uncommon for clinicians to work with statisticians on papers. They are all experts in their respective fields, but their knowledge of the other person's field is almost guaranteed to be less than their collaborators. Yet, it is still possible for them to write papers together because their knowledge bases are complementary.
Should all authors on a paper be comfortable explaining every aspect of the paper?
No. And if you replace the word "should" by "can" then the answer would still be (for some collaborations): No.
Quite often the reason papers get written by multiple authors in the first place is that two or more people pooling together their expertise are able to say something more novel and profound than a single author. That means, almost tautologically, that each of the collaborators possesses some knowledge and expertise that the other does not. Sometimes this knowledge gap shrinks during the writing of the paper as one or both of the collaborators go to the trouble of learning and internalizing the ideas of their coauthors, but often the gap is so large that this is simply not possible. So if you don't feel like you understand everything that your coauthors are doing or saying in your joint papers, don't worry too much about it. Of course, you do need to have some basic level of trust in them to do a competent job, otherwise you may not want to put your scientific credibility on the line by being a coauthor on a paper containing their ideas that you don't fully understand.
Personally, several of my coauthored papers contain some ideas that I don't fully understand and wouldn't necessarily feel comfortable explaining. I see this as normal, unavoidable and not dishonest in any way.
Authors of a paper, at least in my field (mathematical physics), are not always capable of explaining every aspect of the paper. There is a notable paper that sticks out in my mind which presents a rather tour de force calculation by one of the authors but it is responsible for a tiny result necessary for a much larger calculation spanning the entire paper.
However, this particular co-author is known among physicists for his prowess in this specific type of calculation and was specifically sought after to perform it - he did not make other contributions and though probably aware of other content of the paper, his work could be done in isolation.
This provides an example demonstrating that authors needn't be comfortable with the entirety of a paper and simply being listed as a co-author does not imply contributions that span the entire paper.