I don't have much success in giving my cats pills.
Before Chynna had her dental surgery I had to give her Cipro antibiotic. She's a very docile cat and doesn't scratch, but she doesn't co-operate for pills either. I had to literally pin her to a piece of furniture with my body, while holding the pill in my right hand and using my left hand to hold her head, pry her mouth open with my right and throw the pill inside.
That was the easy part!!!
The hard part was getting her mouth closed and held closed before she used her very agile tongue to spit it out! That's where my head came in. I couldn't just hold her head with her mouth closed with both hands because she was moving her head all over the place. So in addition to holding her body down with my body, I put my head against hers to limit how much she could move her head.
A month before she needed anti-nausea medication, which was capsule form. Those were even worse to give. If she spat it out the capsule was sticky and hard to get back into her mouth because they stuck to my fingers. I tried dissolving the powder into water and using a syringe, but the powder didn't dissolve! It ended up just water and pill bits that clogged the syringe. I ended up mixing the powder up with a couple tablespoons of tuna juice and that helped even if the powder didn't dissolve. Because the powder settled, I would give it a quick mix as she was drinking it.
The morning I took her into the vet for her hydration pre surgery, I also took the bottle of Cipro with me and asked them to give her that day's pill!
After the surgery I asked for any medication that she would need to be dispensed as injections. They sent me home with 4 days supply of preloaded syringes of Hydromorphone and Ampicillin. Those were so much easier.
Chynna needs a blood pressure pill daily. Thankfully it's only 1/4 of a pill so it's small. I dissolve it in a couple tablespoons of tuna juice each morning, and she drinks it right up.
I remember many years ago that I had a cat that needed some kind of antibiotic. The vet dispensed it as a liquid and I gave it by eye dropper or syringe. I held her to me quite tightly and inserted the tip of the eye dropper or syringe into the corner of her mouth so that it went in behind her teeth. It wasn't easy, but it was certainly easier than trying to give pills.
If you can't get your kitty to take the pill, contact the vet and ask for injections. They will show you how to give them. It's very easy. You pull the scruff of their neck up high with one hand. That creates a "space" inside. Then you give the needle into that area. They don't even feel it.