I wouldn't say the i7 would be better at'any task'...but, certainly 'many' tasks, and, certainly 6 out of 7 games.
The Ryzen processors will be better at heavy multitasking, such as gaming *while* streaming*, and, any applications or even the odd game or two that scale well with more cores/threads... etc...