Definitely a website bug. I reproduced this, and it is re-pricing the outbound in D when you select a return flight option. The outbound fare difference from P to D is being included in the price shown for the return. I can only assume this has something to do with D being the lowest fare with no copay, and some false conclusions being made by the backend that this is the cheapest fare construction.