Which is better?

or

John F. Kennedy

US president

John F. Kennedy

Benjamin Harrison

US president

Benjamin Harrison