Sorry, Brexit is clouding my judgment. I should have said Continental Europe! ;-)
That said, to be fair I found the UK track maintenance pretty good although trains weren't as punctual as they were in most of Europe. Likewise, the carriages/comfort was somewhat primitive compared to most of what I've experienced on the Continent.
I have to say it's quite some years since I've traveled on British Rail and I understand things have improved considerably in recent years (one only has to watch Portillo speaking to camera from a UK train carriage to realize that).
My worst (and repeated) experience on UK Rail was the horrible Gatwick Express which was often notoriously late (especially the time when it broke down midway to the airport and I missed a flight to New York and lost a whole day in the process).
Perhaps my most memorable experience—it's what always first comes to mind whenever I think of rail travel in the UK—it's the horrible apology for a cheese sandwich that I was offered (and at an enormous ripoff price) on an 'overnighter' from London to Edinburgh (I've witnesses, they suffered the same fate). I can't say I've ever eaten a worse one.
Presumably, the latest food offerings have also improved somewhat since then.
My subjective view is that punctuality and comfort have improved in recent years (especially the new rolling stock on the London-Bristol and London-Cornwall and London-Edinburgh lines is excellent), but the food is as bad as ever, and the prices are getting worse. If you want food on the UK railways then buy it at a station not on the train if you can!
Right, I suppose the quality of food has always been one significant differentiator between the UK and Continental railways. As mentioned, I haven't been to the UK for some years now but over the many times that I have (I'm actually a UK citizen), I've noticed a steady improvement in the food, especially so in London. Over the years, I've noticed lunchtime and takeaway meals improve out of sight and the number restaurants serving foreign food multiply manyfold (I've found London's Indian restaurants pretty much second to none—reckon Indian must be pretty much considered an endemic food by now).
This begs the question why hasn't the food on UK rail improved. Perhaps we should send the executives responsible not to the Continent but to Japan to see how it should be done: https://www.atlasobscura.com/articles/japan-train-food.
(I can attest firsthand at the accuracy of that article, the food on Japanese trains is truly excellent. There's only one drawback: if you're going to some obscure destination that you've not been to previously then don't let the food (or anything else) distract you. Whilst stations in big urban centres often have station names in both Japanese and Roman scripts outlying ones often don't. You either remember the hiragana or kanji scrips accurately for the station names or you count the number of stations accurately from where you embarked—or you do both. Luckily, I've never missed a stop but I've had a few narrow escapes.)
My take: It depends on the line / company. But generally I think the UK is sub standard and extremely expensive compared to continental Europe (expensive, even compared to Switzerland).
Good experience: Virgin first class from London to Manchester. That said, it would have been prohibitively expensive if we hadn't booked the tickets well in advance. Pre-booked and restricted to a specific train they were around 50 quid each. If we would have bought the tickets before boarding the train they weould have been well over 200£ each.
Bad experience: The company that makes my blood boil even thinking about them is Northern. Whenever I have to use them I seriously consider travelling by couch. They are just such an appalling experience and a real sorry excuse for a train company.
Overall I don't think privatization of the railways were a good idea. Not when specific lines are dished out to specific companies and don't allow competition on them.