Franklin Roosevelt. He pulled the US out of the worst economic depression and with it helped to stabilize the democratic system while fascism and totalitarianism was on the rise elsewhere; then he guided the West through World War II and helped set up a more peaceful planet while the US was on the peak of its power and prosperity. I think these combined narrowly edges out Lincoln's accomplishment to keep the union together, which is larger than each of FDR's feats. But FDR's combined legacy, given how long he governed, makes him objectively the best president.
Japanese Internment. Practically handed Eastern Europe to the Soviets. New Deal had a questionable effect on the Great Depression, while digging us into massive debt.
Still a great president because of his leadership, but I definitely wouldn’t call him the best.