When to Use `.pipe()` vs `Effect.gen()` in Effect Typescript

I am trying to figure out when to use .pipe() and Effect.gen() and it seems like anything you could do with Effect.gen you can do with pipe. In the docs I found this which seems like it recommends doing Effect.gen() when pipes become complicated?

https://effect.website/docs/code-style/do/#using-plain-pipe
Effect Documentation
Simplify nested code with Do simulation and generators.
Was this page helpful?