Which is better?

or

John F. Kennedy

US president

John F. Kennedy

Andrew Jackson

US president

Andrew Jackson