Trafalgar's "replace things" power is only slightly more interesting that Bruno's Door Door power. Luffy will have little trouble with it.
Kidd's super magnet power will have no effect on luffy himself, so it will just boil down to Luffy fighting him, as Kidd constructs a giant robot suit of scrap metal.
He will send them both flying. With a kick