The problem with a weight loss diet is that it isn't sustainable.
Eating a healthy diet to get healthy and that you can keep doing long term is optimal.
Eating poorly, then restricting, then eating poorly again. Is a cycle setting yourself up for failure.