If you want the strongest pure courtroom drama, go with Apollo Justice: Ace Attorney.
If you'd prefer something more interactive and investigation-focused, Ace Attorney Investigations: Miles Edgeworth is the better pick, putting you in the shoes of the famous prosecutor as you piece together crime scenes.