Which is better?

or

John F. Kennedy

US president

John F. Kennedy

William McKinley

US president

William McKinley