This would be the same Joseph Smith who was a convicted con man and fraudster.
And the same smith that wrote nearly a dozen varying and contradictaory accounts of this event.
There is a certainly similarity between Smith and Mohammed. Mohammed was acquainted with the Jews and Christians and with their divisions. He also had a visitor who set him up as the Prophet of the one true faith and the judge of all others. His religion is true, that of all others is false. Smith provoked a war with his neighbors, which is the reason he ended up dead, and his followers driven into exile. It wasn’t all the matter of polygamy. His teachings are radically different from those of traditional Christianity.