Police were convinced Jean Charles de Menezes was the right man, an inquest into his death has heard.