A little history for you
Code-sharing isn't done for all the marketing reasons your favourite carrier is telling you, it's done because an online connection takes priority over an interline connection in the GDSs. The airlines use this to steer you to the connection they want you to make, which isn't necessarily the best connection for your purposes.