That seems a little over the top of a parking infraction... Maybe they should be summarily shot too.
If the cop is illegally parked to get lunch, sure ticket them, and/or report them for discipline.
If the cop is attending an incident and that is the only place to park within a reasonable distance, then that's fine.
However the suggestion that irrespective of context and intent, and even for the first contrived example, the cop should lose their job and pension... Ridiculous.