You cannot compare mega-pixels on a DSLR camera and one on a compact point and shoot (PNS).
The following are some of the factors that affect picture quality:
- Resolution (mega pixel)
- Sensor size (physical size of the sensor. For DSLR, you have AP-C, AP-H and FF. You don't need to know what they mean, just that in general, the bigger the sensor size, the better the quality)
- Lens quality (type of glass, maximum aperture etc)
- software in camera
Although the DSLR MP may be lower, it will probably have a larger sensor and better optics. Without knowing the actual model of the cameras that you are comparing, I can only guess that the DSLR will win out in picture quality. There are some compacts which produce better pictures than some DSLRs but we will need to know the models to determine this.
MP is important if you need to enlarge your photos to a very large size (wall poster or larger) or if you want to aggressively crop your image during post-processing. If you are printing nothing larger than 4R or 5R size photos, or displaying them on the web or monitor, the difference in 10.2 Mp and 12 MP (all other things being equal) will be insignificant.