Before we start talking it's probably best that we deal with one thing, in some situations, yes more megapixels are better. If you're wanting to print billboard sized photos, you need extra megapixels without shadow of a doubt. But this most likely isn't you, you're most likely to upload your photos to the internet, to a resolution of most likely, less than 2MP. Even if you want to print your photos, 10MP is more than enough for posters up to A2 realistically.
Below are 2 photos, which one comes from an 18MP camera, and which one comes from a 6MP camera, can you tell the difference? They are both DSLRs, but on an internet webpage can you tell the difference, and if you think the can, is it that one is pixelated and the other isn't? Any subtleties in colour, distortion or the like are not caused by resolution. So ask yourself, which is the higher megapixel photo from?
If you find it hard to tell the difference, that's because they're both uploaded to the internet at the same size, (this is very unscientific though, especially since different lenses were used etc.).
However the point remains, if your friends phone camera has 12MP you can be rest assured that the photos won't be anywhere near the quality of your DSLRs 10MP photos.
This is because partly because of the lens, good lenses make good photos, that's just the way it is, and also sensor size. The bigger sensor in your DSLR means each individual pixel is bigger, this means it gathers light better and replicates colour much better. You'll notice these effects when the going gets tough, in dark conditions, this is where your DSLR will shine, although it'll be heads and shoulders above in most situations if used correctly.
And now the final, most important reason why megapixels don't matter and your DSLR will take better pictures than you're point and shoot or phone camera is the manual control. Manual control enables you to get the best pictures in every situation, it unlocks all the power your DSLR has in creating a work of art. Something that cheaper cameras can't even dream of, which is just another reason to carry on reading and learn how to unlock the power in this completely free online guide.