Hi,
The first two are synonymous. but the second group is a bit different.
"no matter" is used in expressions like:
No matter how hard I tried to explain the difference between the two sentences, I couldn't make myself clear. ;)
but "doesn't matter" means "isn't important"