Trump lost the popular vote. The Obama legacy was NEVER rejected, and in fact came roaring back to take the House in 2018, and to preserve Obamacare, when Republicans tried to end it.
Ending the Obama legacy of police reform really worked well for Trump. Within 3 years of Trump ending all of the police reform programs the Obama Administration started, and Trump encouraging police not to be "gentle" when making arrests, the racial unrest which erupted in the wake of the Michael Brown murder in Ferguson, had exploded into the worst racial unrest since the 1960's.
Ending legal entry into the USA by refugee claimants really worked well for Trump. Within two years, illegal entry had reached the highest levels in 20 years and Trump declared a National Emergency on the Southern Border.
That's in addition to ending the Obama legacy of vigorously prosecuting companies who hire illegal immigrants. Every time a Republican gets into office, they stop prosecution of employers, and big Republican donors like the Koch Company, and Tyson Foods, immediately go back to hiring illegals, resulting in an increase of illegal border crossing under Republican Administrations.
Trump also ended the Obama legacy of the Pandemic Office in the White House, saying it was unnecessary, and he threw out the Obama Pandemic Playbook. While the Obama Administration had 1.5% of the world's deaths from H1N1 using the playbook, versus having 3% of the world's population, Trump had more than 20% of the world's deaths from covid and had to start all over from scratch in figuring out how to fight the pandemic.
Yeah, dismantling the Obama legacy really worked well for Trump and the MAIN reason he's no longer President.