you could say a lawyer is better than a doctor because they not only put dangerous and/or bad people in their place in jail/prison, but they prevent good people from being accused of that bad and going to prison. Lawyer's like some doctors, dedicate their life to this career and sometimes even risk their lives just for defending their client.
(hope this is good enough!)