Correct, you would not gain a tax advantage in Panama. Also both are CRS countries so count on Panama sending your bank info to the Lebanese tax-man.
Whether your bank in Panama is any safer than your bank in Lebanon is more difficult to determine ... they will all go bust at some time but the...