mux is not used in direct mapping. it is ised in set associative mapping or fully associative ie. for k-way set associative mapping k comparators are used each of size(in bits) of tag field and one kx1 mux is used so that all the $k$ bit tags can be compared in parallel, and whichever is matching can be multiplexed to the output.