It's hard to know the the impact of our choices.  When we buy something new, how often do we think about where that product came from, how it's made.

Regarding electronics there is a tremendous diversity of materials.  The source of the materials, especially rare earth elements, is very important. Unfortunately, some of them come from unethical sources, where there is lot of suffering resulting from the mining and exploitation of people.

When we buy something we have to make the effort to know if the entire production pipeline is ethical. A good first step might be to take a look at https://thegoodshoppingguide.com/.