Which is better?

or

William McKinley

US president

William McKinley

John F. Kennedy

US president

John F. Kennedy