The latch is rarely the problem, they can be cleaned & lubed & will usually work, the striker & or door out of adjustment is more common & sometimes the linkage from the handles get jacked up & need adjustments.
If you do need to replace the mechanism there are plenty of good used esp. passenger side.