The way I was taught, the electoral college approach was a compromise to stay away from Greece-style pure democracy, which ended badly, and having legislators choose, which undermines separation of power. The regrettable 3/5 compromise was primarily linked to determining the number of house seats for each state. That does indirectly affect the electoral college as the number of electoral votes are equal to the total of senators + house reps for each state, but the purpose of the electoral college was not to protect slavery. And yes, I opted out of the 1619 Project indoctrination.