Aligning I do the trick of push pistons back, loosen bolts, stick a piece of thin card between rotor and pad each side, pump brake a couple of times, and hold/fix lever to lock the brake on, then tighten the bolts. Generally works.
If you’ve got Avid’s old style CPS washer thingies the whole process is more faff and may take several attempts. For some reason Avid thought it makes alignment easier, but I find it’s worse. Thankfully they’ve finally ditched them.
Anyway, as said, sometimes the rotor is a little bent. Long nosed pliers or adjustable spanner with rotor surface wrapped with clean cloth and just go round carefully bending one bit, spin, bend another, spin, until it stops rubbing.
Other thing is it might be catching just a little with new pads when spinning the wheel, but go ride and it goes away as you use it.