A pixel 2 is a 4 year old phone... I wouldn't be surprised if your battery is performing at a fraction of its original capability, and that might be slowing down performance too. It's not like Apple is immune to this either: https://en.wikipedia.org/wiki/Batterygate