I lived for 3 years in Dubai and now been in Doha for 2 years. You can only compare the two if your priorities are set and if your objectives are clear. To save money and have a more peaceful life Doha is your best bet. If you settle down and do not wanna spend 16 hours of your day outside (4 of which are in Dubai-Sharja traffic) the Doha is the best deal of the two.