Just because average inflation is the same, doesn't mean every product's inflation is the same.
You will see much larger inflation in goods everyone needs, especially low income housing, and maybe some deflation in luxury goods.
On average theres maybe no inflation, but you haven't actually helped the poor. Well done.
And on the subject of low income housing, it's often highly regulated, and can't be hiked arbitrarily.
If I've understood correctly, your argument is that the inflation in the basket of goods consumed by low income people exactly cancels out the increased purchasing power, I'm not sure you can argue that's definitely the case.
Whereas for your argument, I’m not sure how you come to the conclusion that inflation will cancel out all benefits. There is no reason to assume that.
This means that the amount of money overall does not increase as much as the amount of money poor people have.
Therefore, even if there will be a bit of inflation, it won’t cancel the effect of UBI.
Those who earn a lot will have less than before (Because of inflation), but those who earn little or nothing will have more.