Cost is unneeded retransmissions and retransmission
Conclusion is you have to limit packet generation considering all congestion scenarios.
Pipeline depth is selected by current congestion situation
TCP Congestion control notion
Loss-based TCP Congestion algorithms
Delay-based TCP congestion controls