Gaza was not under occupation. It was blockaded because after the occupation ended they decided to ramp up attacks on Israel via. rockets and suicide bombings.
At question was whether Oct 7th was provoked. It was not. It was a full scale ground invasion with military attack plans. Sympathy with the invader doesn't change that. Think objectively.