I often see certain territories/ semi-sovereignties alternatively referred to as a "nation" or a "country".
For example, Quebec (the province in Canada) likes to be referred to as a "nation". Native American tribes in the USA and Canada also like to be called "nations".
However, Scotland, England, Wales, and Northern Ireland in the UK like to be called "countries". I am sure there are many other examples of the usage of either term.
What is the difference between the two terms? Is there a legal distinction, or is it a matter of preference, or some other reason?