Generally speaking, a "better bike" will not make you functionally or relevantly faster. It has a greater potential to make you more comfortable, but that too has its limits.
Overall fitness and good physical and mental training will be the path to faster.