Dharamshala is more beautiful and scenic. If you love photography you will love the place. However, Shimla is also beautiful but very Congested and commercialized.
There is no exact comparison here but you may call one or the other better based on your liking.