I got lessons on pill popping from the vet when one of mine had an overactive thyroid.
One of their top tips, if the cramming between thighs doesn't work, was to lift the cat onto a table, as it alters the balance of power between you and them, and they are more likely to sit still. They will also show you how to hold their head and manipulate jaw to pop tablet in.
I would be careful about hiding it in food unless you know that they are eating it. I have found lots of tablets spat out from one of my other cats, by doing this.
I've found its hard to tell which cats will take tablets and which won't.
Admittedly I have lots of experience in this area, being the local doss house for lots of cats but I've had a few that have needed medication long term, and we have got to the 'almost bearable' stage with it.
However I have no chance with the stray who eats with us that I have occasionally tried to worm and then one of my own, that despite being tiny, 17 YO and quite frail looking, he resists tablet giving so strongly that it always ends in failure and me looking like a self harmer.
However, if you give them a little treat afterwards, it teaches them that having a tablet is not such a bad thing after all. I gave mine a little bit of cream cheese after each tablet, but things like tuna, fish paste, or pate also work well.