It’s distinctly different in this case: they’re just trying to prevent people who are turning smoking age, from conveniently being able to buy cigarettes. They’re not taking away cigarettes from people who can already buy them, which was not the case for prohibition.