Which is better?

or

James K. Polk

US president

James K. Polk

Margaret Thatcher

Female politician

Margaret Thatcher