Patriotism is "ingroup love." An individual will sacrifice out of love for the greater good.
Nationalism is about "outgroup hate." We are better than people that are not like us.
Very few people will go out of their way to try to harm an outgroup. However, if we perceive an outside group as an active threat, it is possible for ingroup love to change into outgroup hate.