I thought about this as well.
The first place I went to is the self defence provision of the CCC, which reads.....
Defence — use or threat of force
- 34(1) A person is not guilty of an offence if
- (a) they believe on reasonable grounds that force is being used against them or another person or that a threat of force is being made against them or another person;
- (b) the act that constitutes the offence is committed for the purpose of defending or protecting themselves or the other person from that use or threat of force; and
- (c) the act committed is reasonable in the circumstances.
- Marginal note:Factors
(2) In determining whether the act committed is reasonable in the circumstances, the court shall consider the relevant circumstances of the person, the other parties and the act, including, but not limited to, the following factors:
- (a) the nature of the force or threat;
- (b) the extent to which the use of force was imminent and whether there were other means available to respond to the potential use of force;
- (c) the person’s role in the incident;
- (d) whether any party to the incident used or threatened to use a weapon;
- (e) the size, age, gender and physical capabilities of the parties to the incident;
- (f) the nature, duration and history of any relationship between the parties to the incident, including any prior use or threat of force and the nature of that force or threat;
- (f.1) any history of interaction or communication between the parties to the incident;
- (g) the nature and proportionality of the person’s response to the use or threat of force; and
- (h) whether the act committed was in response to a use or threat of force that the person knew was lawful.
- Marginal note:No defence
(3) Subsection (1) does not apply if the force is used or threatened by another person for the purpose of doing something that they are required or authorized by law to do in the administration or enforcement of the law, unless the person who commits the act that constitutes the offence believes on reasonable grounds that the other person is acting unlawfully.
The accused has problems with subsection (3) and also 34(1)(c) and 34 (2).
If your reaction to maybe being carjacked is to ram the person and kill them, that may give you a challenge re "reasonableness". Jury might find the reaction excessive.
And 34(3) speaks for itself. But note the last phrase: "unless the person who commits the act that constitutes the offence believes on reasonable grounds that the other person is acting unlawfully."
But you don't get to decide that a cop who just ID-ed himself isn't really a cop and kill him when he tries to detain you.