Lots of approaches to quitting involve replacing the nicotine with another form that doesn’t involve smoking. Lozenges, e-cigarettes and nicotine patches are all examples of this.
Although some people find this really helpful, it doesn’t solve nicotine addiction. You’ll still be dependent on nicotine, just in a different way. Varenicline can stop your nicotine dependence altogether.