I don't think people who say "UK inflation would have been better in the EU" are basing that on "in UK, it was 10.7% and in EU it was 10.1%", but rather on "since Brexit, wealth generated by export has dropped, wealth generated by import has dropped, wealth generated by EU migration workforce has dropped, ... which obviously means that the crisis can only be worse". It does not mean they are right, but even if UK had a smaller inflation than countries still in EU, you can still say that UK would have been better if you see that all indicators show that the cost of life was at the end globally affected negatively by Brexit.
I always think that comparing inflation or national debt to other countries is meaningless. A big national debt used for good investment is way better than a small national debt while the infrastructures fall apart, and the state and cost of the infrastructure can be very different in each country. And for the same level of inflation, the effects would be very different based on the resources and market characteristics of the country and which measures are taken.
(edit: and indeed, if you re-read the text around the quote you've extracted, this is indeed the reasoning: the author does not justify that with a comparison of the inflation rate, but with a list of where the Brexit made things worse)