Discrepancy in AIS - Big Time

I’m not so sure about this. See: Major issues with AIS for stock sales on Zerodha

Just stick to Zerodha values for filling your tax. No need to match every trade.