You're right that if Cost and Forecast are the same for some or all months, they'll visually overlap completely in the line chart, making only one of them visible at a time (unless a user clicks the legend to toggle their display on/off).
Your idea of using an overlay (bar chart + line chart) sounds like a good workaround.