The photon you are talking about should be electrocautery. One is focused laser, which is heated by light to cauterize and remove moles. One is electric heating cauterization to remove moles. Their working principles are different, the principle of removing moles is the same, and the effect is basically the same.
this is a question I have answered before. You can check my answer materials, which have a clear explanation, and I also have a specific explanation about your question in the knowledge leader.
I hope I can help you.