But it's worth emphasizing that both represent marketing, with the terms in common use detached form history.
Still, if we want to look at origins, we consider Federalist 10:
"A republic, by which I mean a government in which the scheme of representation takes place"
Federalist 10, by Madison, looks at republic vs democracy in depth as the terms are intended in the US context.