There are two situations: dismount and kill at once. A sword with cuffs.
Pull people off the horse: when the horse is finished, press the left button directly at the edge of the horse, or press Shift to dismount and then press the left button.
Assassinate immediately: When riding a horse, or at a high place (as long as it is as high as a horse), get close to the target (right+left).