Which is better?

or

James A. Garfield

US president

James A. Garfield

James Buchanan

US president

James Buchanan