Good for weightloss?

Hello! I would like to loose weight but I don’t know if dry fasting or water fasting would be better for that. I know many people say they loose weight more on a dry fast but in return gain some of it back. I’m also trying to build/ maintain muscle so I don’t know which to do.