MIDI clock is a global message and is not on any specific channel. If it's being sent, then all devices in the same MIDI chain will see it. You can either disable MIDI clock reception on the devices that you don't want to respond to the clock, or you can use an event processor or filter as you suggest to remove the clock from the messages going to some devices.