In a perfect world, it shouldn't matter. The DOT requires airlines to disclose codeshares at time of booking (that screws PAX originating out of the country, I know). The benefits to both PAX and the airlines, to me, way outweigh the negatives of codeshare flights.