No, they aren't. If a Pokémon in play gets discarded through a card's effect, no points are gained.
Points are gained only when an opponent's Pokémon are Knocked Out.
For example, if Klefki's Ability "Dismantling Keys" is used and Klefki is subsequently discarded, the opponent does not gain any points from that action.
For example, if you use your Guzzlord’s Breakcore attack and the opponent’s Pokémon is discarded, you don’t get any points.