filter records within MySQL replication
You can filter on databases and/or tables only.  See the manual on binlog/replicate-do/ignore-db/table

The filtering can be before leaving the Master (binlog-...) or as it comes into the Slave (replicate-...).

The main intent of Replication is for the Slave to be an identical copy of the Master.  Your request is deviating quite far from that.