I should clarify that the goal is not tax optimization but rather being able to focus on getting product market fit instead of spending time "managing" the company.
From doing a lot of research I get that the general recommendation is to avoid tax havens (at least the obvious, shady ones - US, Ireland, Netherlands etc. are of course fine).
It really depends on how you want to grow. If you’re bootstrapping on profits then tax implications can become very important. You can have a subsidiary in ‘non shady’ jurisdictions for any squeamish customers.