Race Control, was this a clean overtake?

I was playing the F1 game, racing at Spain and took a bit of a lunge at my friend on the last lap. I think it was rather Verstappen-esque at Abu Dhabi 2021 but was told otherwise. For the sake of an argument who was in the wrong? Thanks.