TV auto-switches to OSMC when turned on

Generally with CEC problems first step always is to disconnect both devices from power (physical unplug) for 1 minute and then reconenct.
Also for your specific issue check in the CEC settings if anything might have been reset during the upgrade.