Of course, the "XY problem" usually presumes a naive person ("user")who falsely imagines the more complicated-sounding solution Y would solve their simple problem. And that's a pretty common situation.
The general approach for all this stuff is whenever someone is asking for the solution to a complicated or weird question, just verify they have some reason to approach it that way. There's no reason to automatically assume either they do or they don't and not assuming anything lets you approach them more respectfully.