Ground troops that can't advance due to a cheap nonstop drone and missile barrage is also not a solution as you are going to run out of troops before ypur enemy runs out of drones.
Ukraine is a poor example here because we've been poor allies to them. Drones are manufactured in factories that can be bombed, stockpiled in warehouses that can be bombed, transferred to the front lines in trucks that can be bombed. But Ukraine doesn't have the air force assets to achieve that. The Israelis do, and the amount of drones that have been launched at Israel has dropped considerably over the last three weeks.