You can read their respective privacy policies to understand what data they collect and how it is used.
If you're skeptical of their legal terms, then you're better off with Chromium as it remains open-source. Edge unfortunately is a closed-source product.