Here is a goal: How do you get a pet to take their medication

Which way makes more sense to accomplish this goal?
Coat the medication in peanut butter before feeding it to them