A critical comparison of smooth and sharp interface methods for phase transition