Which is better?

or

James K. Polk

US president

James K. Polk

Ulysses S. Grant

US president

Ulysses S. Grant