Hi Lucas Magalhães and thanks for the question
Logic Apps is very powerful for integration and can make a lot of things a great deal simpler vis-a-vis writing the same in code (where often a lot of "plumbing" code is required). In addition connectors often have added functionality for common patterns. An example here for the http action https://learn.microsoft.com/en-us/azure/connectors/connectors-native-http#asynchronous-request-response-behavior
However, that all said, my personal opinion here is that the workflow logic should be as simple as possible and each workflow not too large (in the same way we dont typically have 100s of lines in a procedure/function in code, we refactor instead)
If you reach a situation where the workflow becomes hard to read or you're struggling (as you are in the above example with a large conditional statement) then i would consider the following two options
(1) Logic Apps provides the option of running JS code snips https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-add-run-inline-code?tabs=consumption which can be useful
(2) you can simply offload parcels of business logic to your own Az function in a language of your choice (supported by functions), leaving the logic app workflow to model the integration flow. Of course you're not limited to functions, any API or functionality Logic Apps can integrate with can be used to provide business logic
The trade off here is that business logic is executed out of process - in modern programming terms that's the equivalent of reaching out via an API versus executing a local function and the former is of course more "expensive" in terms of performance
So, again in my opinion, it's a trade-off between complexity and performance - but I do think it's counter productive to try and create a large and complex/unwieldy workflow / orchestration - which will be hard to keep maintained