Validly performing a particular obligatory prayer discharges that prayer obligation.

The Goodness of Commanded Acts: Intrinsic and Instrumental