Question: how to teach a cat to not scratch?
Answer: Use deterrents. Stick double-sided tape on furniture, which makes the surface unpleasant for cats. Use feline pheromone spray, which reduces the cat's desire to scent-mark. Spray the cat with a water bottle if they're scratching somewhere other than a scratching post.